jQuery-Timepicker-Addon icon indicating copy to clipboard operation
jQuery-Timepicker-Addon copied to clipboard

Input field focus issue on Safari

Open carmoreira opened this issue 8 years ago • 5 comments
trafficstars

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.

carmoreira avatar Dec 22 '16 01:12 carmoreira

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.

gnomical avatar Mar 13 '17 18:03 gnomical

I have verified that the bug is introduced in 1.6.0

gnomical avatar Mar 13 '17 19:03 gnomical

Any fix for this?

Legarndary avatar Jun 22 '17 08:06 Legarndary

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!

toshniba avatar Aug 20 '20 12:08 toshniba

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?...

rmh-dev avatar Jun 02 '21 09:06 rmh-dev