lexical
lexical copied to clipboard
Bug: Slow Performance in Safari with Large Character Counts
Lexical version: 0.13.1 (Vanilla JS)
Steps To Reproduce
- Access the CodeSandbox example: Link.
- In Safari, type quickly in the first editor.
Link to code example: CodeSandbox
The current behavior
Issue: Persistent input latency is observed in the initial editor, unaffected by previous solutions like outline:0;.
Observation: Additionally, when lag occurs and the user switches to a second editor, the input unexpectedly continues in the new editor.
The expected behavior
For the Issue: The expectation is for the editor to handle rapid typing smoothly, without noticeable delay.
For the Observation: Inputs should remain in the originally intended editor, or stop as explained here.
I have noticed the same behaviour with Google Chrome. This behaviour can be reproduced on Lexical official Playground.