mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-05 22:48:48 +00:00
Stop event propagation for contextmenu show event (#1493)
This commit is contained in:
parent
ab5e7b5bd9
commit
d975869542
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue