New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datepicker does not fire input "input" event #2078
Comments
Thanks for the report. Since the issue is already in 1.12, given limited team resources it's not likely to be fixed by the UI team; see the project status at https://blog.jqueryui.com/2021/10/jquery-maintainers-update-and-transition-jquery-ui-as-part-of-overall-modernization-efforts/. PRs are welcome if they're not too complex. |
Don't use the change event, use the input event. Which one you use it doesn't matter they won't fire.
|
For Datepicker, when a date is selected and the associated input's value is updated, the "change" event is fired, but the "input" event is not. I assume this is because Datepicker was originally created before the "input" event became standard.
Although this has been the longtime behavior, it looks to be a simple change to fire the "input" event at the same time.
jquery-ui/ui/widgets/datepicker.js
Lines 1111 to 1113 in e21a254
The text was updated successfully, but these errors were encountered: