Skip to content
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

No change event is fired on selecting a date. #624

Open
vdboor opened this issue Jul 31, 2024 · 0 comments
Open

No change event is fired on selecting a date. #624

vdboor opened this issue Jul 31, 2024 · 0 comments

Comments

@vdboor
Copy link

vdboor commented Jul 31, 2024

When the datepicker is attached to an input field, it will not trigger a change event after selecting the date.
This became visible as my code relied on change events to occur; for example when combining this plugin with the jQuery mask plugin.

This is my current a workaround:

const datePicker = new AirDatepicker(el, {
    ....
            onSelect: (e)  => {
                // Make sure jQuery mask plugin and our form handlers update.
                this.$el.change();
            }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant