diff --git a/README.md b/README.md index 2ea3e1b8..0a4ac8c0 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic * adding class `context-menu-active` to define state on active trigger element - ([Issue 92](https://github.com/medialize/jQuery-contextMenu/issues/92)) * adding [demo for TouchSwipe](http://medialize.github.com/jQuery-contextMenu/demo/trigger-swipe.html) activation * fixing iOS "click" compatibility problem - ([Issue 83](https://github.com/medialize/jQuery-contextMenu/issues/83)) +* fixing separators to not be clickable - ([Issue 85](https://github.com/medialize/jQuery-contextMenu/issues/85)) ### 1.5.25 ### diff --git a/src/jquery.contextMenu.js b/src/jquery.contextMenu.js index f8b57fb5..ee1fc9df 100755 --- a/src/jquery.contextMenu.js +++ b/src/jquery.contextMenu.js @@ -713,7 +713,7 @@ var // currently active contextMenu trigger callback; // abort if the key is unknown or disabled or is a menu - if (!opt.items[key] || $this.hasClass('disabled') || $this.hasClass('context-menu-submenu')) { + if (!opt.items[key] || $this.is('.disabled, .context-menu-submenu, .context-menu-separator, .not-selectable')) { return; }