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
Nested drop targets and canDrop #1032
Comments
I came here initially because I had the opposite problem... which I solved with Thus I think the behaviour you're describing should be the default behaviour. I'm assuming both accept the same drop types, and that your actual dom elements don't have some wierd stacking issue going on, and that your canDrop isn't getting in the way. Anyway, I'm not a contributor/collaborator, and just found your issue by chance. You may wish to post a sandbox of your issue, as this always helps library maintainers understand exactly your problem. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@danielrob how did you solve your problem with |
Hi Andrew! I solved this, what I did is that I called
at the beginning of Hopefully this helps you too. |
oh, thanks! I have to dig up where I used this but it looks useful:) Nice to see familiar faces here! |
Look this problem is related to the library itself, when you hover the dragged element into a nestable droppable element. The data you are passing to the droppable element might overlap with the droppable parent or one the ancestors droppable elements. Pass this line in canDrop to take data only from the current Hovered
}, [elementRoot]); |
I have 2 nested DropTargets.
I want to prevent drop on child droptarget if the drop on parent drop target is disabled.
How can the canDrop() method of the child depend on the canDrop() method of the parent?
I didn't find a way to do that strictly with the current API, I had to rely on components.
Has anybody struggled with this?
Thanks!
The text was updated successfully, but these errors were encountered: