You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using iOS, if the cursor is placed inside parentheses and a character with composition is entered just before the closing parenthesis, upon confirming the input, the entered character becomes selected. As a result, when typing the next character, the previously entered text gets deleted.
RPReplay_Final1726839505.mov
This seems to happen when bracketMatching extension is enabled.
Browser and platform
iPad Pro 3rd gen, iOS 16.6, Safari/Chrome 129.0.6668.46
The text was updated successfully, but these errors were encountered:
ina-yuzen
changed the title
iOS: text deletion after input confirmation inside parentheses
iOS: text selection after input confirmation inside parentheses
Sep 20, 2024
After testing the demo for a while, I noticed the following behavior on iOS when entering Japanese text:
When typing Japanese, the input string is first highlighted (selected), and then the cursor moves to the position immediately after the entered text.
Additionally, I observed that when the decoration immediately following the input text disappears, the behavior of the selection range changes.
Since the bracketMatching feature relies on the selection range to determine whether to highlight brackets, this sequence of events causes a brief flicker in the bracket highlighting. Specifically, when the entered text is initially selected, the bracket highlighting disappears, but it reappears once the cursor moves to the position after the text.
It seems this appearance and disappearance of the decoration is causing the selection range to behave inconsistently. While I'm still unsure what exactly happens when the input string is finalized, I hope these observations are helpful.
Describe the issue
When using iOS, if the cursor is placed inside parentheses and a character with composition is entered just before the closing parenthesis, upon confirming the input, the entered character becomes selected. As a result, when typing the next character, the previously entered text gets deleted.
RPReplay_Final1726839505.mov
This seems to happen when bracketMatching extension is enabled.
Browser and platform
iPad Pro 3rd gen, iOS 16.6, Safari/Chrome 129.0.6668.46
Reproduction link
https://codemirror.net/try/?c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge2JyYWNrZXRNYXRjaGluZ30gZnJvbSAiQGNvZGVtaXJyb3IvbGFuZ3VhZ2UiCgppbXBvcnQge2phdmFzY3JpcHR9IGZyb20gIkBjb2RlbWlycm9yL2xhbmctamF2YXNjcmlwdCIKCm5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICIoKVxuIiwKICBleHRlbnNpb25zOiBbYnJhY2tldE1hdGNoaW5nKCldLAogIHBhcmVudDogZG9jdW1lbnQuYm9keQp9KQo=
The text was updated successfully, but these errors were encountered: