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 moving the caret (e.g., using arrow keys or clicking at the end of a line) and immediately typing, the inserted text appears at an incorrect position.
This seems like a synchronization issue between selection state and text insertion.
Steps to reproduce
Open Quill editor (official demo or local instance)
Type multiple lines of text
Move the cursor using arrow keys (e.g., to the end of a line)
Immediately start typing quickly
Expected behavior
Text should be inserted at the current caret position.
Actual behavior
Text is inserted at a different position than the visible caret (e.g., previous position or wrong offset).
Reproducibility
Occurs intermittently but frequently when typing quickly after moving the caret.
Environment
Quill version: 2.0.3
Browser: (Chrome / Edge )
Additional context
This appears similar to known cursor synchronization issues:
Description
When moving the caret (e.g., using arrow keys or clicking at the end of a line) and immediately typing, the inserted text appears at an incorrect position.
This seems like a synchronization issue between selection state and text insertion.
Steps to reproduce
Expected behavior
Text should be inserted at the current caret position.
Actual behavior
Text is inserted at a different position than the visible caret (e.g., previous position or wrong offset).
Reproducibility
Occurs intermittently but frequently when typing quickly after moving the caret.
Environment
Additional context
This appears similar to known cursor synchronization issues:
It may be related to race conditions between selection updates and text-change events.
Possible direction
The issue might be caused by:
Demo (I could reproduce it in quill live demo)
quill.webm