forked from matrix/element-web
Comment why we're passing empty objects in
This commit is contained in:
parent
e857ab762c
commit
6722eedf7a
|
@ -61,6 +61,7 @@ function onLinkContextMenu(ev, params) {
|
||||||
clipboard.writeText(url);
|
clipboard.writeText(url);
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
// popup() requires an options object even for no options
|
||||||
popupMenu.popup({});
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -88,6 +89,7 @@ function onSelectedContextMenu(ev, params) {
|
||||||
const items = _CutCopyPasteSelectContextMenus(params);
|
const items = _CutCopyPasteSelectContextMenus(params);
|
||||||
const popupMenu = Menu.buildFromTemplate(items);
|
const popupMenu = Menu.buildFromTemplate(items);
|
||||||
|
|
||||||
|
// popup() requires an options object even for no options
|
||||||
popupMenu.popup({});
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
@ -101,6 +103,7 @@ function onEditableContextMenu(ev, params) {
|
||||||
|
|
||||||
const popupMenu = Menu.buildFromTemplate(items);
|
const popupMenu = Menu.buildFromTemplate(items);
|
||||||
|
|
||||||
|
// popup() requires an options object even for no options
|
||||||
popupMenu.popup({});
|
popupMenu.popup({});
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue