You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I miss a handling for invalid input. Assume, we have set minutes interval to 15 min. I'm not sure how an invalid input should be handled in this case if user input something manually and left the field then (onblur event). I would say, the old (prev. input value) should stay then. Assume I had 02:45 and input 02:53. Then
02:53 -> 02:45
But what is if we want to round up / down the last input value (real business case in my web application). So that
02:53 -> 03:00
May be we can configure this behavior by options. I propose two new options:
By the way. I found that you can input any wrong value into the input field. That's very strange. Wrong values should not be accepted in my opinion. Similar to this timepicker http://haineault.com/media/jquery/ui-timepickr/page/ Another option would be the using of keyfilter plugin http://akzhan.github.com/jquery-keyfilter/ You could generate a regular expression from options (minute interval, etc.) and check the input value on blur event.
I'm not sure now if we need this feature at all. Web application normally checks input values after the form submit. Real time checking on leaving the field is a nice to have feature, but not must to have.
Hello,
I miss a handling for invalid input. Assume, we have set minutes interval to 15 min. I'm not sure how an invalid input should be handled in this case if user input something manually and left the field then (onblur event). I would say, the old (prev. input value) should stay then. Assume I had 02:45 and input 02:53. Then
02:53 -> 02:45
But what is if we want to round up / down the last input value (real business case in my web application). So that
02:53 -> 03:00
May be we can configure this behavior by options. I propose two new options:
round = true / false (default is false)
roundMinutesStep = 15
Can your add this feature to the timepicker please? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: