Bug: textarea inputs in Safari stop accepting input if certain lines are deleted
#28360
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
This is a strange one that I honestly couldn't believe wasn't caused by our app, but it turns out I can reproduce it in a minimal fresh React app as well: if you have a
<textarea>input and you select and delete any line other than the first, second, or last, you cannot type in that input anymore until you leave and refocus it. This is only reproducible in Safari.React version: 18.2.0
Safari version: 17.3
MacOS version: Sonoma 14.3
Steps To Reproduce
<textarea>with four or more lines of initial contentLink to code example: https://github.com/iansan5653/textarea-safari-bug
Screen recording of the bug (based on running the linked repo):
Screen.Recording.2024-02-16.at.2.07.16.PM.mov
The current behavior
Upon deleting the line, the line cannot be typed into anymore. Moving the caret to another line allows typing, but moving it back to the deleted line does not. Sometimes an errant character appears in the deleted line. Blurring (moving focus away from) the input and refocusing it makes the whole input interactive again, but does not restore lost input.
The expected behavior
The input should remain full interactive as normal.
More details
The text was updated successfully, but these errors were encountered: