sumcumo / vue-datepicker

A datepicker Vue component. Compatible with Vue 2.x.
https://sumcumo.github.io/vue-datepicker/
Apache License 2.0
75 stars 22 forks source link

Revisit events #169

Closed mst101 closed 2 years ago

mst101 commented 2 years ago

This PR emits achanged event whenever the selected date is changed. This is also the case when the selected date changes from null to a valid date and vice versa.

Further, it alters the way the focus and blur events work: instead of relating solely to the focus status of the input field, these events now relate to the focus status of the datepicker as a whole. Therefore, an inline datepicker will now emit a focus event when any element within it first becomes focused - and a blur event when no elements within it are focused any longer.