dnd-kit
dnd-kit copied to clipboard
nested SortableContexts onDrag End
I have a scenario where I have multiple SortableContexts nested inside of a single DndContext.
Imagine this setup:
dndContext --sortableContext id="1" ----sortableContext id="2" ------sortableContext id="3"/ ----/sortableContext --/sortableContext /dndContext
no matter which sortableContext my drag item is dropped onDragEnd provides over.data.current.sortable is always id 1.
This is not helpful.
Any advice?