Shaddix / dnd-kit-sortable-tree

Tree component for React with ability to drag-and-drop items throughout the tree. Based on an example from dnd-kit (https://github.com/clauderic/dnd-kit).
MIT License
81 stars 22 forks source link

Bug: Incorrect projection when item cannot have children #26

Closed konrad-gerlach closed 1 year ago

konrad-gerlach commented 1 year ago

When an item A is dragged on such a height, that it should be dropped into item B, but B cannot have children, a projection is shown in B, if A is dragged out of bounds (see 1) and to the left it is below B, if it is to the right it is shown with depth of 0 (see 2) In both cases "Collections 131" can't have children. image image