Skip to content

Commit 874aa02

Browse files
authored
Fix #211 include triggering event in menu callback
1 parent f01fbf6 commit 874aa02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.contextMenu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@
891891
}
892892

893893
// hide menu if callback doesn't stop that
894-
if (callback.call(root.$trigger, key, root) !== false) {
894+
if (callback.call(root.$trigger, key, root, e) !== false) {
895895
root.$menu.trigger('contextmenu:hide');
896896
} else if (root.$menu.parent().length) {
897897
op.update.call(root.$trigger, root);

0 commit comments

Comments
 (0)