Bug: Slow Performance in Safari with Large Character Counts
- Dominant language
- TypeScript
- Stars
- 23.9k
- Forks
- 2.2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 57
Description
Lexical version: 0.13.1 (Vanilla JS)
## Steps To Reproduce
1. Access the CodeSandbox example: [Link](https://codesandbox.io/p/sandbox/lexical-vanilla-js-forked-yd7r7t?file=%2Fsrc%2Findex.js).
2. In Safari, type quickly in the first editor.
Link to code example: [CodeSandbox](https://codesandbox.io/p/sandbox/lexical-vanilla-js-forked-yd7r7t?file=%2Fsrc%2Findex.js)
## 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](https://github.com/facebook/lexical/issues/4239).
Contributor guide
Assessment
This issue has not been assessed yet.