Hello.
I tried to call this.setState({}) in IDropEventArgs of drop event.
but the following error appears:
ej2-diagrams.es5.js:27754 Uncaught TypeError: Cannot read property 'children' of undefined
at DiagramComponent../node_modules/@syncfusion/ej2-diagrams/dist/es6/ej2-diagrams.es5.js.Diagram.removeObjectsFromLayer (VM5207 bundle.js:45987)
at Droppable.droppable.drop (VM5207 bundle.js:49965)
at Observer../node_modules/@syncfusion/ej2-base/src/observer.js.Observer.notify (VM5207 bundle.js:9105)
at Droppable../node_modules/@syncfusion/ej2-base/src/base.js.Base.trigger (VM5207 bundle.js:2697)
at Droppable../node_modules/@syncfusion/ej2-base/src/droppable.js.Droppable.intDrop (VM5207 bundle.js:5058)
at Draggable../node_modules/@syncfusion/ej2-base/src/draggable.js.Draggable.intDragStop
Is it impossible to call thi.setState() here?
alternatively, I choose the way to edit node info by call doubleclick event and show modal.but it is better to call this.setState() in IDropEventArgs and show modal.
IDropEventArgs
https://ej2.syncfusion.com/react/documentation/api/diagram/iDropEventArgs/#position