clauderic / clauderic/dnd-kit

"Failed to execute removeChild on Node" in multiple sortable lists

Open
#1,940 4 comments 14 reactions 0 assignees View on GitHub
bug react triage:done
Dominant language
TypeScript
Stars
17.6k
Forks
924
Avg merge
2d 10h
Merged PRs (30d)
2

Description

When I use the `useSortable` hook for two lists, after I drag an item from one list to another, and change state in "onDragEnd" callback, I get an error: `Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`

Within a single list it works perfectly.

Code: https://codesandbox.io/p/sandbox/dndkit-pc83lq

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.