frontend-collective / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://frontend-collective.github.io/react-sortable-tree/
MIT License
4.9k stars 897 forks source link

How to apply canDrop to the browser lines and +/- icons? #920

Open NickEmpetvee opened 2 years ago

NickEmpetvee commented 2 years ago

By setting canDrop to false on a node in the tree, you can prevent drops from happening there. However, it's not clear how to prevent drops onto the +/- expansion and collapse symbols or the lines connecting the nodes. Can someone please advise how to do this?