-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Open
Description
When selecting a word and typing to replace it, too many characters are deleted. Specifically, the selected word is deleted and then the same number of characters are deleted again.
I've only observed this when using the Android virtual keyboard (on a Samsung Galaxy Tab S9).
Steps to reproduce
- Type a few words into Quill e.g.
This is some text - Select a word e.g.
some - Type a letter e.g.
y - Expected result:
This is y text(ywas inserted and the 4 characters ofsomewere deleted) - Actual result:
This is yt(ywas inserted and 8 characters were deleted)
Screen_Recording_20251028_145808_Samsung.Internet.mp4
Cause
It seems that Quill emits the .delete delta twice, once when the IME composition begins and once when it ends. (The Android virtual keyboard is considered an IME.)
- When the composition begins Quill emits
.retain(8).delete(4) - When the composition ends Quill emits
.retain(8).insert("y").delete(4)<-- this.deleteshould not be here
Metadata
Metadata
Assignees
Labels
No labels