angular-ui-tree/angular-ui-tree

Cannot drag a node to make it the last node in the tree if the last node is collapsed

agyanttiwari opened this issue · 2 comments

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

I am not able to drag a node as the last node in the tree, if the current node is collapsed or does not have any children.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar.

  1. Go to http://angular-ui-tree.github.io/angular-ui-tree/#/basic-example
  2. Click on Collapse all
  3. Try to drag node 1 under to node 3 to make it the last node in the tree.
  4. There is no drop-zone after node 3 to drop node 1 to make it the last child

What is the expected behavior?
There should be a drop zone after the node 3 to allow node 1 to be dropped as the last node in the tree.

Following.

I also struggled with this issue. Try setting 'appendChildOnHover' to false and see if that works more intuitively for you. It had the exact effect that my clients wanted.