Skip to content

Commit 9e8667b

Browse files
committed
Fix for bug 454 Events not triggering when opening a contextMenu right after the other
1 parent bbbf33c commit 9e8667b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/jquery.contextMenu.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443
offset;
444444

445445
e.preventDefault();
446-
e.stopImmediatePropagation();
446+
// e.stopImmediatePropagation();
447447

448448
setTimeout(function () {
449449
var $window;
@@ -465,12 +465,13 @@
465465
sel.addRange(range);
466466
}
467467

468+
$(target).trigger(e);
468469
root.$layer.show();
469470
}
470471

471472
if (root.reposition && triggerAction) {
472473
if (document.elementFromPoint) {
473-
if (root.$trigger.is(target) || root.$trigger.has(target).length) {
474+
if (root.$trigger.is(target)) {
474475
root.position.call(root.$trigger, root, x, y);
475476
return;
476477
}

0 commit comments

Comments
 (0)