-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Option to always fire dp.change event #476
Comments
This can be resolved as follows:
|
That's what I am doing, the problem is that the second dp.change never fires.
Plunkr: http://plnkr.co/edit/IxFCEcX8OD88BwaAY1Jl?p=preview |
ok I see your point. try this plunkr it fetches code from development which works as it should |
Looks good. Fires the dp.change event after the error is corrected even if it is the same date as the previous one. Thanks. |
Let's leave this issue open until it is implemented on v4branch as well |
ok implemented in v4beta as well |
In some instances, if the date doesn't change and the dp.change event doesn't fire, there is no way to be notified that the user interacted with the control.
For example, if I am listening to dp.change for setting and clearing an error class on a form and a user sets the datepicker value to something invalid (set the form error class to true), then uses the datepicker to change it back to the original date, the change is never fired and there is no way to clear the error.
Perhaps an option to force the dp.change event to fire even if the actual date doesn't change would be helpful in these situations.
The text was updated successfully, but these errors were encountered: