mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
add XXX comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4508da5666
commit
b23f84e1f5
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ export default class ContextualMenu extends React.Component {
|
|||
const x = e.clientX;
|
||||
const y = e.clientY;
|
||||
|
||||
// XXX: This isn't pretty but the only way to allow opening a different context menu on right click whilst
|
||||
// a context menu and its click-guard are up without completely rewriting how the context menus work.
|
||||
setImmediate(() => {
|
||||
const clickEvent = document.createEvent('MouseEvents');
|
||||
clickEvent.initMouseEvent(
|
||||
|
|
Loading…
Reference in a new issue