Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.43k stars 142 forks source link

Datepicker doesn't create `form` input event #953

Closed ExEr7um closed 1 month ago

ExEr7um commented 1 month ago

Describe the bug I'm using date-picker inside form along with other inputs. I have event listener on form, which listens to input event to handle validation.

When user inputs something in any other input this event fires. But when user selects a date it does not fire.

It's important that I'm using form's input event, not input.

To Reproduce Steps to reproduce the behavior:

  1. Create a form with datepicker inside
  2. Add event listener on form with input event
  3. Select date
  4. See that event listener did not fire

Expected behavior When date is selected, form should fire input event.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop & mobile (please complete the following information):

Jasenkoo commented 1 month ago

Expected behavior, as this is a custom vue component, which emits an update:model-value event when the value is updated.