JakeSidSmith / react-reorder

Drag & drop, touch enabled, reorderable / sortable list, React component
https://jakesidsmith.github.io/react-reorder/
MIT License
218 stars 58 forks source link

Allow nested reorder components (stop propagation on item down) #93

Open cyberpluto opened 6 years ago

cyberpluto commented 6 years ago

This allows to work with nested Reorder components, otherwise all nested elements drag together :)

JakeSidSmith commented 6 years ago

@cyberpluto I wouldn't want to add this to the library in this way as there would be no way to not prevent the stopPropagation. However, allowing a user to manually call stopPropagation would be fine. Or perhaps a prop that stops propagation.

Adding a callback for onItemDown would allow a user to manually call this. Would that be a suitable solution for you?