lexical icon indicating copy to clipboard operation
lexical copied to clipboard

Bug: When selecting multiple p-nodes, using a non-English input method may cause input to be blocked

Open shaoLian-LH opened this issue 11 months ago • 2 comments

Lexical version: latest

Steps To Reproduce

  1. Access the playground address: https://playground.lexical.dev/
  2. Clear all text, then set like:
Image
  1. Select nodes with font color or background color, along with other ordinary text nodes (Important). At this point, if the user is using a non-English input method, unexpected behavior may occur.

The current behavior

https://github.com/user-attachments/assets/05553ebe-f3ec-4ec3-8939-b08975b0c477

The expected behavior

When using other input methods in this scenario, input should not be blocked, and the selected text nodes should be correctly replaced

shaoLian-LH avatar Dec 12 '25 03:12 shaoLian-LH

I was unable to reproduce the issue using the cyrillic keyboard layout, but the nodes are correctly replaced in the case where only the colored text is selected (the style is preserved) and when both the colored and regular text are selected

https://github.com/user-attachments/assets/73f2adbc-8088-4c65-845d-0796becf4401

The problem might be related to the IME, so the issue description needs to be clarified

levensta avatar May 09 '26 12:05 levensta

Tested on current main (macOS Sequoia 15.5, Chrome 137) with Korean and Chinese (Pinyin) IME:

  1. Applied font color to text in one paragraph
  2. Added a second paragraph with unstyled text
  3. Selected the second paragraph
  4. Typed with Korean/Chinese IME

Both IMEs replaced the selection and input worked normally. This may have been fixed by one of the many composition-related changes that landed since this was filed.

Are you still seeing this on the latest version?

mayrang avatar Jun 27 '26 06:06 mayrang