Skip to content

Allow dropping on all items, but target node should always be a folder? #219

Closed
@MarksCode

Description

@MarksCode

I want to let the user drag and drop a node onto any other node, but if the target node is not a folder, the target should instead be the target node's parent (This is how most file-pickers work). Unfortunately setting canDropOnNonFolder to true causes the uncontrolled tree environment to attempt rendering the dragged node as a child of the non-folder target node, so this doesn't work.

Does anyone know if this sort of behavior is possible?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions