Open
Description
I have downloaded the current version, and created a test page. In the test page if I use list elements the function propagates from the top list item down to the lower list items. Is there a method to stop this from happening? Thank you for your help?
<html>
<head>
<link href="dist/jquery.contextMenu.min.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script language="javascript" src="src/jquery.ui.position.js"></script>
<script language="javascript" src="src/jquery.contextMenu.js"></script>
<script>
$(function() {
$.contextMenu({
selector: '.context-menu-one',
callback: function(key, options) {
var m = "clicked: " + key;
alert(m);
},
items: {
"edit": {name: "Edit", icon: "edit"},
"cut": {name: "Cut", icon: "cut"},
"copy": {name: "Copy", icon: "copy"},
"paste": {name: "Paste", icon: "paste"},
"delete": {name: "Delete", icon: "delete"},
"sep1": "---------",
"quit": {name: "Quit", icon: function(){
return 'context-menu-icon context-menu-icon-quit';
}}
}
});
});
</script>
</head>
<body>
<span class="context-menu-one btn btn-neutral">right click me</span><br>
<span class=" btn btn-neutral">right click me</span><br>
<ul >
<li class="Docs context-menu-one" style="list-style-type: none;"> Testing
<ul >
<li class="upTest" style="list-style-type: none;">
<a href="#">dfasfsdafas</a>
</li>
</ul>
</li>
</ul>
<span class=" btn btn-neutral">right click me</span><br>
<span class=" btn btn-neutral">right click me</span><br>
</body>
</html>