mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-21 21:32:13 +01:00
Stop event propagation for contextmenu show event (#1493)
This commit is contained in:
parent
ab5e7b5bd9
commit
d975869542
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user