minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable canDrag on some of the selected node

nilesh2b opened this issue · comments

Hi @minop1205

I need your help preventing some of the nodes to be dragged.

Right now it works perfect but it prevents dragging all nodes, can we prevent dragging some of the selected nodes?

@nilesh2b To control dragging, you can use the canDrag API.

If you cannot get the expected behavior using the canDrag API, please show me a repository or Codesandbox that can reproduce the problem.