Hello!
This issue was already solved in #215 , I tried that method with the last version of vue2-datepicker and it didn't worked. I downgraded to v2.6.3 version and it worked with the same code. I personally don't need this, it's just an observation.
Thank you!
It's a problem to config how to show the popup.
I'll add the featrue to next version.
v3.0.0 add prop open to control the state of popup.
Control the opening of the popup by open
It'll be opened when the click is not input element.
<date-picker :open="open" @close="open = false" @click.native="handleClick" />
export default {
data() {
return {
open: false,
};
},
methods: {
handleClick(evt) {
if (evt.target.tagName !== 'INPUT') {
this.open = true;
}
},
},
};
Most helpful comment
Control the opening of the popup by
openIt'll be opened when the click is not input element.