reppners / ngx-drag-drop

Angular directives using the native HTML Drag And Drop API
https://reppners.github.io/ngx-drag-drop/
BSD 3-Clause "New" or "Revised" License
299 stars 118 forks source link

Error while dragging event in ngx-drag-drop #44

Closed RagavanRevature closed 5 years ago

RagavanRevature commented 5 years ago

I have a div to be dragged with some data i made few modification to data on onDrop() event.the div gets dropped. But if i drag the same div once again I am getting following error

test.html:57 ERROR TypeError: Converting circular structure to JSON at JSON.stringify () at setDragData (ngx-drag-drop.es5.js:43) at DndDraggableDirective.push../node_modules/ngx-drag-drop/ngx-drag-drop.es5.js.DndDraggableDirective.onDragStart (ngx-drag-drop.es5.js:320) at Object.eval [as handleEvent] (test:57) at handleEvent (core.js:10258) at callWithDebugContext (core.js:11351) at Object.debugHandleEvent [as handleEvent] (core.js:11054) at dispatchEvent (core.js:7717) at core.js:8161 at HTMLDivElement. (platform-browser.js:995)

I am not able to figure out the reason for this issue.Any help on this issue?