Hello,
I am trying to use beforeAdd event for diagram.
According to documentation (beforeAdd Event of Data Collection | DHTMLX JavaScript Diagram Docs) if i return true it will add item in data collection and on returning false it will not add item in data collection.
when i return false it gives error Uncaught TypeError: Cannot read properties of undefined (reading ‘$item’) on diagramWithEditor.js
Version used: 5.0.0
Anyone else faced this issue ?