Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent DNDContext for Cross list dnd with nested Multiple sortable lists DndContexts #1570

Open
iamterryclark opened this issue Dec 18, 2024 · 0 comments

Comments

@iamterryclark
Copy link

iamterryclark commented Dec 18, 2024

I have an application with multiple DndContexts. 1 nested along with 2 side by side contexts.

I have two sortable lists and a parent DndContext, which i want to drag an element from one list to the other

After looking at the docs it seems that its only possibly to have one surrounding context and a single onDragEnd function, which should manage sorting and the dragging between different lists.

I wanted to make sure that a single dnd context was the only way to manage this was the only way to do this with dnd-kit? As I wanted to have the separation of logic instead of everything in one function.

I have created a small sandbox https://codesandbox.io/p/sandbox/5322gl

many thanks in advance

@iamterryclark iamterryclark changed the title Multiple Nested DndContexts / Cross list dnd / sortable lists Parent DNDContext for Cross list dnd / Multiple sortable lists DndContexts Dec 19, 2024
@iamterryclark iamterryclark changed the title Parent DNDContext for Cross list dnd / Multiple sortable lists DndContexts Parent DNDContext for Cross list dnd with nested Multiple sortable lists DndContexts Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant