react-sortablejs: Failed to execute 'insertBefore' on 'Node'
Hi!
some time. when move block from one column to top another, browser catch error in console Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node..
After this error app broken and need reload page.
Code broken on this line https://github.com/cheton/react-sortable/blob/master/src/index.jsx#L63
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 4
- Comments: 15
Commits related to this issue
- Resolve an issue that failed to execute 'insertNode' on 'Node' (resolves #19) — committed to SortableJS/react-sortablejs by cheton 10 years ago
I had the same issue using sortablejs (not using react). An error appears when all following conditions are met: 1)You have two nested sortable containers 2)option “pull:clone” is set at least on the parent container 3)You drag an item from the parent container into the nested container
I solved with a small modification of the sortablejs library.
I made a pull request with my small patch: https://github.com/SortableJS/Sortable/pull/1784