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();
}
}
When the datepicker is attached to an input field, it will not trigger a
changeevent 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: