-
Notifications
You must be signed in to change notification settings - Fork 1.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
Hours can go negative when defaultTime is set to false #194
Comments
I did some quick debugging- if your cursor is focused on the input element and you click the |
I just wanted to post an update, since I just ran into this problem: |
+1 Thanks @bryanweaver for the temporary solution however I still have the negative issue when they click down. |
Solution: I think we should set the defaultTime once again, the timepicker has a function name setDefaultTime after set it we never get the negative issue like this |
If defaultTime is set to false, and the user clicks the down arrow for either hours or minutes (or seconds if they're enabled), then the hour will be set to -1. (If seconds are enabled, minutes are properly decremented to 59.) This only happens the first time the timepicker popup is rendered.
I created a jsfiddle example of this here.
The text was updated successfully, but these errors were encountered: