From d975869542f1a18e92dd0c3ee3c874e4537e280c Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 11 Dec 2024 11:03:30 -0800 Subject: [PATCH] Stop event propagation for contextmenu show event (#1493) --- frontend/app/store/contextmenu.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/store/contextmenu.ts b/frontend/app/store/contextmenu.ts index 17a83ee51..4b5db01b7 100644 --- a/frontend/app/store/contextmenu.ts +++ b/frontend/app/store/contextmenu.ts @@ -46,6 +46,7 @@ class ContextMenuModelType { } showContextMenu(menu: ContextMenuItem[], ev: React.MouseEvent): void { + ev.stopPropagation(); this.handlers.clear(); const electronMenuItems = this._convertAndRegisterMenu(menu); getApi().showContextMenu(globalStore.get(atoms.workspace).oid, electronMenuItems);