Issue metadata
Sign in to add a comment
|
selectionStart and selectionEnd attributes of a textarea HTML element are not getting properly updated in Chrome 58 for DELETE, BACKSPACE & CTRL+X keys.
Reported by
babanpre...@comprotechnologies.com,
May 29 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Steps to reproduce the problem: https://jsfiddle.net/babanpreet/5zwz80s0/7/ 1. Click in the Text area. "«expression»" will get selected automatically. At this time the value of selectionStart and selectionEnd attribute of text area is 4 & 16 respectively. 2. Press Delete or Backspace or Ctrl+X key. The caret will be placed before first comma (,) and the value of selectionStart and selectionEnd is 4. 3. Press Tab to loose focus from text area 4. Press Shift Tab to give focus back to text area. The text from caret position 4 to 16 gets selected as the value of selectionStart is 4 and selectionEnd is 16. What is the expected behavior? Ideally no text should be selected and caret should be at position 4. This issue occurs only in Chrome 58. What went wrong? selectionStart and selectionEnd variables of textarea HTML element are not getting updated properly. Did this work before? Yes 58 Chrome version: 58.0.3029.110 Channel: stable OS Version: 10.0 Flash Version:
,
May 30 2017
Fixed by patch[1] [1] http://crrev.com/2878613002 INPUT/TEXTAREA elements: Fix incorrect selectionStart/selectionEnd values after blur
,
May 30 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by dtapu...@chromium.org
, May 29 2017