jQuery-contextMenu icon indicating copy to clipboard operation
jQuery-contextMenu copied to clipboard

Fast right click between two or more buttons Fix

Open feralonsomaccari opened this issue 5 years ago • 2 comments

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

feralonsomaccari avatar Sep 13 '19 15:09 feralonsomaccari

What browser is this, i cannot reproduce in firefox?

bbrala avatar Sep 11 '20 14:09 bbrala

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.

06Games avatar Mar 10 '21 17:03 06Games