diff --git a/cytoscape-cxtmenu.js b/cytoscape-cxtmenu.js index de3e9922..692e8c01 100644 --- a/cytoscape-cxtmenu.js +++ b/cytoscape-cxtmenu.js @@ -551,7 +551,7 @@ var cxtmenu = function cxtmenu(params) { var inThisCommand = theta1 <= theta && theta <= theta2 || theta1 <= theta + 2 * Math.PI && theta + 2 * Math.PI <= theta2; - if (command.disabled) { + if (command.disabled === true || command.enabled === false) { inThisCommand = false; }