I am following example listed at
Context Menu in React Diagram component - Syncfusion.
I have added a small snippet listed below. The event does not appear to be handled in the react code. I've set-up a sample app if needed. There appears to an issue with either the code or the sample code is not correct. Could you please advise?
contextMenuClick: function (args) {
//do your custom action here.
alert('clicked') //added this
if (args.item.id === 'delete') {
if ((diagramInstance.selectedItems.nodes.length + diagramInstance.selectedItems.connectors.length) > 0) {
diagramInstance.cut();
}
}
}