Skip to content

Commit cd06455

Browse files
committed
Merge branch 'master' of https://github.com/kagant15/jQuery-contextMenu into kagant15-master
# Conflicts: # src/jquery.contextMenu.js
2 parents 62d1509 + 9e8667b commit cd06455

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/jquery.contextMenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
offset;
449449

450450
e.preventDefault();
451-
e.stopImmediatePropagation();
451+
// e.stopImmediatePropagation();
452452

453453
setTimeout(function () {
454454
var $window;
@@ -469,13 +469,13 @@
469469
sel.removeAllRanges();
470470
sel.addRange(range);
471471
}
472-
472+
$(target).trigger(e);
473473
root.$layer.show();
474474
}
475475

476476
if (root.reposition && triggerAction) {
477477
if (document.elementFromPoint) {
478-
if (root.$trigger.is(target) || root.$trigger.has(target).length) {
478+
if (root.$trigger.is(target)) {
479479
root.position.call(root.$trigger, root, x, y);
480480
return;
481481
}

0 commit comments

Comments
 (0)