add XXX comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
							parent
							
								
									4508da5666
								
							
						
					
					
						commit
						b23f84e1f5
					
				| 
						 | 
					@ -96,6 +96,8 @@ export default class ContextualMenu extends React.Component {
 | 
				
			||||||
            const x = e.clientX;
 | 
					            const x = e.clientX;
 | 
				
			||||||
            const y = e.clientY;
 | 
					            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(() => {
 | 
					            setImmediate(() => {
 | 
				
			||||||
                const clickEvent = document.createEvent('MouseEvents');
 | 
					                const clickEvent = document.createEvent('MouseEvents');
 | 
				
			||||||
                clickEvent.initMouseEvent(
 | 
					                clickEvent.initMouseEvent(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue