[Webkit-unassigned] [Bug 208835] New: Safari doesn't preserve user selection upon updating input value with the same value programmatically
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 9 15:03:33 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=208835
Bug ID: 208835
Summary: Safari doesn't preserve user selection upon updating
input value with the same value programmatically
Product: WebKit
Version: Safari 13
Hardware: Macintosh
OS: macOS 10.15
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jason.rammoray at gmail.com
Created attachment 393078
--> https://bugs.webkit.org/attachment.cgi?id=393078&action=review
Demonstrating the issue in Safari
Details:
* an input field has some value (say "initial value")
* a user clicks somewhere in the middle of the input field (say, right after "l")
* the input field's value is getting updated programmatically with the same value after n seconds
Expected:
The user's selection (cursor position) doesn't change.
Actual:
A cursor jumps to the end of the input's value (right after "e").
Demo:
https://jsbin.com/pipefoluha/1/edit?html,js,output
Notes:
The cursor positions is correctly handled in:
* Chrome [80.0.3987.132 (Official Build) (64-bit), macOS 10.15.3 (19D76)]
* Firefox [73.0.1 (64-bit), macOS 10.15.3 (19D76)]
--
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/20200309/b78843e1/attachment.htm>
More information about the webkit-unassigned
mailing list