mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
fix context menu
This commit is contained in:
parent
7a1a3a2bea
commit
bc500490e9
@ -40,7 +40,7 @@ class ContextMenuModelType {
|
||||
showContextMenu(menu: ContextMenuItem[], ev: React.MouseEvent<any>): void {
|
||||
this.handlers.clear();
|
||||
const electronMenuItems = this._convertAndRegisterMenu(menu);
|
||||
getApi().showContextMenu(electronMenuItems, { x: ev.clientX, y: ev.clientY });
|
||||
getApi().showContextMenu(electronMenuItems);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user