mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Comment why we're passing empty objects in
This commit is contained in:
parent
8872a6a24a
commit
d353c13bf1
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,7 @@ function onLinkContextMenu(ev, params) {
|
|||
clipboard.writeText(url);
|
||||
},
|
||||
}));
|
||||
// popup() requires an options object even for no options
|
||||
popupMenu.popup({});
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
@ -88,6 +89,7 @@ function onSelectedContextMenu(ev, params) {
|
|||
const items = _CutCopyPasteSelectContextMenus(params);
|
||||
const popupMenu = Menu.buildFromTemplate(items);
|
||||
|
||||
// popup() requires an options object even for no options
|
||||
popupMenu.popup({});
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
@ -101,6 +103,7 @@ function onEditableContextMenu(ev, params) {
|
|||
|
||||
const popupMenu = Menu.buildFromTemplate(items);
|
||||
|
||||
// popup() requires an options object even for no options
|
||||
popupMenu.popup({});
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue