Browse the Source

Drop targets can, too, be nested in one another. Unlike the drag sources, several drop targets may react to the same item being dragged.

React DnD by design offers no means of stopping propagation. Instead, the drop targets may compare monitor.isOver() and monitor.isOver({ shallow: false }) to learn if just them, or their nested targets, are being hovered. They may also check monitor.didDrop() and monitor.getDropResult() to learn if a nested target has already handled the drop, and even return a different drop result.