Hi,
I have implemented drag and drop functionality. It is working fine for all the items except the first one. I do not get the updated model when I drag the first element and I get below error -
ERROR TypeError: Cannot read property '0' of undefined
at TreeViewComponent.push../node_modules/@syncfusion/ej2-navigations/src/treeview/treeview.js.TreeView.moveData (treeview.js:3076)
at TreeViewComponent.TreeView.dropAsChildNode (treeview.js:3043)
at TreeViewComponent.TreeView.appendNode (treeview.js:3007)
at TreeViewComponent.TreeView.dropAction (treeview.js:2984)
at Droppable.drop (treeview.js:2866)
at Observer.notify (observer.js:99)
at Droppable.Base.trigger (base.js:152)
at Droppable.intDrop (droppable.js:95)
at Draggable.intDragStop (draggable.js:467)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
Can you please help me with this issue?
Thanks,
Samir