diff --git a/packages/lexical/src/LexicalEvents.ts b/packages/lexical/src/LexicalEvents.ts index 0c438be9643..75781514a1b 100644 --- a/packages/lexical/src/LexicalEvents.ts +++ b/packages/lexical/src/LexicalEvents.ts @@ -558,6 +558,7 @@ function onBeforeInput(event: InputEvent, editor: LexicalEditor): void { dispatchCommand(editor, DELETE_CHARACTER_COMMAND, true); } } else { + $setCompositionKey(null); event.preventDefault(); dispatchCommand(editor, DELETE_CHARACTER_COMMAND, true); }