Suggestion: close on select
stefandevo opened this issue · 5 comments
stefandevo commented
How about an option to close the popup when selecting a date?
rottmann commented
Currently you can fake it, but i hope the author will implement options for an easier usage.
<calendar
v-model="calendar.value"
...
v-on:input="calendarChange"
inputClass="calendar-input"
></calendar>
data() {
return {
calendar: {
'value': new Date()
},
calendarFirstCall: true
}
},
methods: {
calendarChange: function() {
// not show the calendar on the first view
if (this.calendarFirstCall) {
this.calendarFirstCall = false
return
}
let evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
})
let elements = document.getElementsByClassName('calendar-input')
elements[0].dispatchEvent(evt)
}
}
edisdev commented
Currently you can fake it, but i hope the author will implement options for an easier usage.
Thank you 👍II will make this property with together new feature at near time.
nezaboravi commented
Did near time close? :) its a year and half :)
edisdev commented
Sorry, This problem has been resolved albeit late .
Thanks 🙏