jQuery-Timepicker-Addon
jQuery-Timepicker-Addon copied to clipboard
Input field focus issue on Safari
On version 1.6.3, when using Safari, after a date/time is set, if we go back to edit the value manually instead of choosing from the date/time picker, the input field looses the cursor focus, allowing us to edit maybe one or two characters only. In a scenario where users would also write the date/time manually it's a bit annoying. This didn't happen on version 1.5.2. Not sure what's causing this.
I am also having this issue. Its obstructing the ability to manually edit the input fields. Which is unfortunate because other than this issue the features meet my needs very well.
I have verified that the bug is introduced in 1.6.0
Any fix for this?
Seems it has to do with setSelectionRange which obviously is implemented something different in Safari. I tried w/o that line and it works. Don't know why we need that there anyhow.
Maybe one can fix it in a pull request as I have no time and knowledge for that. thx!
I'm experiencing the same issue. But it appears only, if I set a custom dateFormat (e.g. 'dd.mm.yy') and the focus is lost only, when typing of the date is finished. I fixed it with a WORKAROUND:
- Set option
timeInput: true - Set Focus back to Input after typing using JQuery
My guess is, that it somehow has to do with the altField-Funktionality?...