Skip to content

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

@vdboor

Description

@vdboor

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();
            }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions