Skip to content

Console log error in drag n drop when missing selection feature #143

@crusaider

Description

@crusaider

Describe the bug
Browser Console Message
Uncaught Error: Headless Tree: drag-and-drop needs selection

To Reproduce
Create a tree with DnD feature omitting the selection feature

Expected behavior
Did not expect the error since the documentation gives the impression that the selection feature is optional when using DnD. https://headless-tree.lukasbach.com/dnd/overview/

Library versions
"@headless-tree/core": "^1.2.1",
"@headless-tree/react": "^1.2.1",

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