Menu Onclick zoneId = false

The following event always returns false for the zoneId in contextMenu mode.
It should return the ID of the item I right clicked.
Has anyone else had this issue?

menu.attachEvent(“onClick”, function(id, zoneId, casState){});

To reproduce it we need completed demo: … leted_demo
Make it and attach, please.

No problem. Just right click any item and select “Remove.” The zoneId will show as “false.”
Complete (173 KB)

Use the next approach:

var treeID = dhxTree.contextID; alert("You want to Remove " + treeID + ".");
Where ‘contextID’ is private property.

Perfect. I didn’t even think to look at the Tree object. I’ve been focused on the Menu. Thanks.

You are welcome!