[Webkit-unassigned] [Bug 224425] setSelectionRange() on blur re-focuses input element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 12 02:16:11 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=224425

--- Comment #1 from Cetin Sert <apple at sert.works> ---
In https://stackoverflow.com/questions/67055218/set-input-caret-position-on-blur-in-safari-without-refocusing-input (link to minimal playground test)

Safari is the only browser where 'setSelectionRange' interferes with blur (focus loss/change)
  'setSelectionRange' traps the user into '#a' in Safari with no way out!
  'selectionStart > 0' that I have added helps one escape on second attempt.

Is it possible to make 'setSelectionRange' behave like other browsers i.e. not interrupt / mess with 'blur' / 'focus loss/change'.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210412/166116c3/attachment-0001.htm>


More information about the webkit-unassigned mailing list