-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
typing a new date into the <input> does not trigger changeDate #241
Comments
Reopening, the proposed fix (#295) didn't fix this. |
The trouble with tabbing away is that we don't know whether the date has changed or not since we last triggered the |
perhaps we could save the value of the input on the focus event (that seems to work) and compare with the actual value of the input on the blur event. if they differ, we would trigger a changedDate event. BTW, I've just asked a similar question at SO: http://stackoverflow.com/questions/15183541/bootstrap-datepicker-not-picking-change-event-on-input |
If I type a new date into the , then tab or click away from the input without clicking on a date in the datepicker, no changeDate event is triggered.
$(input).val() returns the expected date, so this probably works just fine when used in forms, but I've got a backbone view that needs an event to bind to. 'changeDate' works but only captures events triggered by mouseclicks or the documented keyboard navigation.
The text was updated successfully, but these errors were encountered: