swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 745 forks source link

Fast right click between two or more buttons Fix #696

Open feralonsomaccari opened 5 years ago

feralonsomaccari commented 5 years ago

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

bbrala commented 4 years ago

What browser is this, i cannot reproduce in firefox?

06Games commented 3 years ago

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.