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

Droppable area detect if sortable item dropped over #49

Closed
code-sanchu opened this issue Jan 11, 2021 · 3 comments
Closed

Droppable area detect if sortable item dropped over #49

code-sanchu opened this issue Jan 11, 2021 · 3 comments

Comments

@code-sanchu
Copy link

The docs state: "Use the useDroppable hook to set up DOM nodes as droppable areas that draggable elements can be dropped over."

I'm wandering if it's possible for droppable areas to detect if sortable elements are dropped over them?

Apologies in advance if I've missed something. It was straightforward to create a working example of a droppable area working with a draggable element. I've tried to have a droppable area inside and outside the SortableContext.

@code-sanchu
Copy link
Author

I may have jumped the gun here. Somehow it seems to be somewhat working when I tried to reproduce the issue in a sandbox. I'll close this issue for now.

@will-hang
Copy link

Hey @ruben00001, how'd you figure this one out?

@ranbena
Copy link
Contributor

ranbena commented Mar 5, 2021

Shouldn't be a problem as long as the Sortable and the Droppable are both nested within the same DndContext.

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

3 participants