From 3bf25a43b0f43605989463351f8e0ffe5eaf9e3b Mon Sep 17 00:00:00 2001 From: lawvs <18554747+lawvs@users.noreply.github.com> Date: Thu, 15 Sep 2022 19:12:24 +0800 Subject: [PATCH] fix: ime with command menu --- .../editor-plugins/src/menu/command-menu/Container.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/components/editor-plugins/src/menu/command-menu/Container.tsx b/libs/components/editor-plugins/src/menu/command-menu/Container.tsx index c9911f5c4b..e162613d99 100644 --- a/libs/components/editor-plugins/src/menu/command-menu/Container.tsx +++ b/libs/components/editor-plugins/src/menu/command-menu/Container.tsx @@ -175,6 +175,9 @@ export const CommandMenuContainer = ({ if (!isShow) { return; } + if (event.nativeEvent.isComposing) { + return; + } if (types && event.code === 'ArrowUp') { handleClickUp(event); return;