mengxiong10 / vue-datepicker-next

A datepicker / datetimepicker component for Vue3
https://mengxiong10.github.io/vue-datepicker-next/
MIT License
147 stars 34 forks source link

[Feature request] focus and blur events are missing in next #12

Closed the-nightling closed 2 years ago

the-nightling commented 2 years ago

What problem does this feature solve? Restore the focus and blur events that we had in Vue2. Is there any way to access those events?

What does the proposed API look like?

mengxiong10 commented 2 years ago
  mounted() {
    document.querySelector('.mx-input').addEventListener('focus', () => {
      console.log('focus');
    });
  },