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

(Suggestion) Fire an 'input' event when Datepicker or Timepicker closes. #6405

Open
Pentadome opened this issue Jul 2, 2019 · 0 comments
Open

Comments

@Pentadome
Copy link

Expected Behavior

Right now, you can set this behavior with:

var options = {
        setDefaultDate: true,
        format: "dd/mm/yyyy",
        onClose() {
            for (let i = 0; $('.datepicker').length > i; i++) {
                 $('.datepicker')[i].dispatchEvent(new CustomEvent('input'));
            }
        }
   };

But I think it would be nice if it did this by default.

Current Behavior

Right now, it does not fire an 'input' event, this may cause problem with javascript frameworks (like vueJS).

Context

vueJS did not detect a change without this event.

Your Environment

Latest version.

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