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

useDroppable doesn't work on root component #1356

Open
tsuharesu opened this issue Mar 2, 2024 · 1 comment
Open

useDroppable doesn't work on root component #1356

tsuharesu opened this issue Mar 2, 2024 · 1 comment

Comments

@tsuharesu
Copy link

https://codesandbox.io/p/sandbox/magical-mountain-t2fmm7?file=%2Fsrc%2FApp.tsx

It took me a long long time to understand why my droppable was not working, and it seems that the hook doesn't work correctly when it is in the same level as DndContext.

@jitender-techindustan
Copy link

jitender-techindustan commented Mar 26, 2024

yes i was facing the same issue, having the droppable at the same level where DndContext is not working. And it took me long time to figure out this issue. so i just did extract droppable in another component and it worked.

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

2 participants