Bug: When selecting multiple p-nodes, using a non-English input method may cause input to be blocked
Lexical version: latest
Steps To Reproduce
- Access the playground address: https://playground.lexical.dev/
- Clear all text, then set like:
- 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
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
Tested on current main (macOS Sequoia 15.5, Chrome 137) with Korean and Chinese (Pinyin) IME:
- Applied font color to text in one paragraph
- Added a second paragraph with unstyled text
- Selected the second paragraph
- 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?