add XXX comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-06-22 19:23:39 +01:00
parent 4508da5666
commit b23f84e1f5
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E

View file

@ -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(