We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 06a677b + 5b77a16 commit 6e60882Copy full SHA for 6e60882
src/jquery.contextMenu.js
@@ -439,7 +439,7 @@
439
var triggerAction = ((root.trigger === 'left' && button === 0) || (root.trigger === 'right' && button === 2));
440
441
// find the element that would've been clicked, wasn't the layer in the way
442
- if (document.elementFromPoint) {
+ if (document.elementFromPoint && root.$layer) {
443
root.$layer.hide();
444
target = document.elementFromPoint(x - $win.scrollLeft(), y - $win.scrollTop());
445
root.$layer.show();
0 commit comments