jQuery-contextMenu
jQuery-contextMenu copied to clipboard
Fast right click between two or more buttons Fix
If you click too fast beetwen two or more buttons, the layer on top of everything stay bugged and force to reload the page.
This is the element that get bug
<div id="context-menu-layer" style="height: 657px; width: 796px; display: block; position: fixed; z-index: 1; top: 0px; left: 0px; opacity: 0; background-color: rgb(0, 0, 0);"></div>
I created a new function and calling it solve the problem removing the layer This work for me in my proyect and I want to share the fix.
To reproduce the bug you can try fast right clicking multiple times here and see the problem https://swisnl.github.io/jQuery-contextMenu/demo/on-dom-element.html
What browser is this, i cannot reproduce in firefox?
I can confirm that this bug still happens. I use Firefox 86 and by right-clicking everywhere, the context-menu-layer
div remains activated which then prevents any new interaction.