lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: after formatting a text as strikethrough, the editor doesn't allow more text to be written

Open sagzy opened this issue 3 years ago • 3 comments

Lexical version: 0.10.0

Steps To Reproduce

  1. Open Lexical Playground
  2. Type ~~foo~~. The text is formatted as strikethrough.
  3. 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/

sagzy avatar Apr 26 '23 16:04 sagzy

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?

acywatson avatar Apr 27 '23 05:04 acywatson

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 ~.

sagzy avatar Apr 27 '23 08:04 sagzy

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.

mayrang avatar Jul 02 '26 08:07 mayrang