Bug: after formatting a text as strikethrough, the editor doesn't allow more text to be written
Lexical version: 0.10.0
Steps To Reproduce
- Open Lexical Playground
- Type
~~foo~~. The text is formatted as strikethrough. - Now try to type
bar: the editor doesn't allow more than one letter to be typed. Expected:foo bar. Current:foo r.
https://user-images.githubusercontent.com/6225080/234637521-31b17cff-5b54-4286-90b7-5d5d14c925aa.mp4
Link to code example: https://playground.lexical.dev/
I can't seem to repro this in Chrome on mac. Is there anything you're using locally that might be contributing to the problem?Are you on a different browser/OS?
I'm using Arc browser (Chromium-based) on mac OS. One difference may be my keyboard – I'm using a French keyboard (AZERTY) and I type Alt + N to get ~.
This appears to be fixed by #4620, which added a composing check to prevent markdown shortcuts from triggering during dead key input. Tested on macOS with Option+N dead key for ~ — ~~foo~~ converts to strikethrough and subsequent typing works correctly. Verified that the bug reproduces on the commit before #4620.