Stop event propagation for contextmenu show event (#1493)

This commit is contained in:
Evan Simkowitz 2024-12-11 11:03:30 -08:00 committed by GitHub
parent ab5e7b5bd9
commit d975869542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,6 +46,7 @@ class ContextMenuModelType {
}
showContextMenu(menu: ContextMenuItem[], ev: React.MouseEvent<any>): void {
ev.stopPropagation();
this.handlers.clear();
const electronMenuItems = this._convertAndRegisterMenu(menu);
getApi().showContextMenu(globalStore.get(atoms.workspace).oid, electronMenuItems);