Skip to content

Commit 0b6c31a

Browse files
committed
fixing separators to not be clickable - Issue #85
1 parent 2d6c9d6 commit 0b6c31a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
114114
* adding class `context-menu-active` to define state on active trigger element - ([Issue 92](https://github.com/medialize/jQuery-contextMenu/issues/92))
115115
* adding [demo for TouchSwipe](http://medialize.github.com/jQuery-contextMenu/demo/trigger-swipe.html) activation
116116
* fixing iOS "click" compatibility problem - ([Issue 83](https://github.com/medialize/jQuery-contextMenu/issues/83))
117+
* fixing separators to not be clickable - ([Issue 85](https://github.com/medialize/jQuery-contextMenu/issues/85))
117118

118119

119120
### 1.5.25 ###

src/jquery.contextMenu.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ var // currently active contextMenu trigger
713713
callback;
714714

715715
// abort if the key is unknown or disabled or is a menu
716-
if (!opt.items[key] || $this.hasClass('disabled') || $this.hasClass('context-menu-submenu')) {
716+
if (!opt.items[key] || $this.is('.disabled, .context-menu-submenu, .context-menu-separator, .not-selectable')) {
717717
return;
718718
}
719719

0 commit comments

Comments
 (0)