Skip to content

Suggestion! Throw change event when a new date is picked in date picker  #67

Description

@AhlawatAnup

Hey, Thanks for the so good and simple library. Contributing the same ....
If you want to report the event when the new date is picked in the input box . Add these two lines in "jsCalendar.datepicker.js"
at line 343

const event = new Event('change', { bubbles: true });
this._target.dispatchEvent(event);

and will throw the 'change' event whenever the new date is picked

and then the input box change can be listened.

Happy coding..
Thanks

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions