Skip to content

Can't drop items on an empty tree #182

Description

@sweco-sedalh

Describe the bug

Can't drop items on an empty tree (without any items).

To Reproduce
Steps to reproduce the behavior:

  1. Setup an environment with two <Tree />s, one of which is empty
  2. Try to drag items from the tree that's not empty to the one that is
  3. Item cannot be dropped anywhere

https://codesandbox.io/s/react-complex-tree-playground-forked-96pwzt

Expected behavior
A clear and concise description of what you expected to happen.

Dropping can happen on any part of the tree. Setting {min-,}{height,width} can be used to set a size for an empty tree, the entire of which is a valid drop target.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 107.0.5304.107

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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