-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Raising change event when nothing has changed #154
Comments
👍 This, in combination with a mistake I was making, caused me a lot of pain. I'd be fine with it triggering an "initialized" or similar event, but triggering change when initialized is unexpected behavior. |
@sparc thank you for the tip. Too bad it's not been implemented 🙄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the pickaday object is created and attached to an already existing field that has a valid date, the filed is set again with the same date and the change event is fired (line 683), but nothing has really changed.
Changing line 683:
if (this._o.field) {
to
if (!preventOnSelect && this._o.field) {
fixed the problem
The text was updated successfully, but these errors were encountered: