Replies: 1 comment
-
From the drop target documentation:
This approach has been taken for maximum flexibility - each drop target being dragged over has the opportunity to be dropped onto (if it wants). In a similar setup to what you are describing, there might be experiences were a child cannot be dropped on (due to business logic) but the parent drop target could still accept the drop. One example could be: when dragging a "task" into a "list" that contains tasks - it might be possible to only drop onto a few tasks in the list, but it could always be possible to drag into the list itself. Having each drop target be able to make it's own decision about whether it can be dropped on gives consumers full control on what the logic should be for their experience. So if you want child drop target to block dropping on a parent in a hierarchy to block dropping, they all need to |
Beta Was this translation helpful? Give feedback.
-
I'm using pdnd for a nested drop target scenario, i noticed with [A(canDrop => false), B], the onDrop on B will still be triggered.
Is there any way i can stop this propagation when A.canDrop fails the prediction?
Beta Was this translation helpful? Give feedback.
All reactions