frontend-collective / frontend-collective/react-sortable-tree
Remove DropTarget to nodes in runtime
Open
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way to specify which nodes have the DropTarget?
I'd like to remove the dropTarget to all the nodes that doesn't meet a condition.
For example, while dragging a node I want to remove the DropTarget to all the nodes that doesn't share the same parent
```jsx
data.nextNode.parent === this.state.draggedNode.parent } />
```
This way while dragging the tree won't suggest you dropTarget that you don't want
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.