From 3a5be0655666fd6bda42804bf6eeaf0347d04907 Mon Sep 17 00:00:00 2001 From: F-jianchao <161407305+F-jianchao@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:56:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8F=B3=E5=87=BB?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=90=8E=E6=8A=A5=E9=94=99=20(#10121)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-editor-core/src/component/Editor.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/amis-editor-core/src/component/Editor.tsx b/packages/amis-editor-core/src/component/Editor.tsx index 949d5aaedad..c233842263c 100644 --- a/packages/amis-editor-core/src/component/Editor.tsx +++ b/packages/amis-editor-core/src/component/Editor.tsx @@ -421,6 +421,7 @@ export default class Editor extends Component { // 右键菜单 @autobind async handleContextMenu(e: React.MouseEvent) { + e.persist(); await closeContextMenus(); let targetId: string = ''; let region = '';