jQuery-Timepicker-Addon
jQuery-Timepicker-Addon copied to clipboard
Input loses focus when typing with picker open
v1.6.1 (Chrome 46. Does not replicate in FF42 or IE11)
- Open a picker
- then click into the textbox and delete the hour
- notice that the textbox no longer has focus preventing you from typing a new value from hour without first clicking into the textbox.
http://jsfiddle.net/brettwebster/L3BNw/60/
focus is handled differently in v1.3.1 http://jsfiddle.net/brettwebster/L3BNw/
Confirming.
To overcome this issue, I simply commented one line in jquery-ui-timepicker-addon.js :
this.$timeObj[0].setSelectionRange(sPos, ePos) (L893)
If it helps...
Yes, it helps, thank you!
+1
Commenting out setSelectionRange() also fixes the following issues for me:
- "Unspecified error" in IE when changing time in date/time ranges (reproduces in IE11)
- Date time picker steals the focus from "autofocus" input on page load (reproduces in Chrome 47.0.2526.111 m)
+1
+1 here too. It was messing with the input mask as well in a really annoying way.
+1 helped me too. Thanks
+1 Thanks a lot.
+1 +1
+1
+1
+1