lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: Slow Performance in Safari with Large Character Counts

Open DaniyelMe opened this issue 1 year ago • 3 comments

Lexical version: 0.13.1 (Vanilla JS)

Steps To Reproduce

  1. Access the CodeSandbox example: Link.
  2. 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.

DaniyelMe avatar Mar 04 '24 18:03 DaniyelMe

I have noticed the same behaviour with Google Chrome. This behaviour can be reproduced on Lexical official Playground.

mrdivyansh avatar May 16 '24 06:05 mrdivyansh