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
agyanttiwari commented
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.
- Go to http://angular-ui-tree.github.io/angular-ui-tree/#/basic-example
- Click on
Collapse all - Try to drag
node 1under tonode 3to make it the last node in the tree. - There is no
drop-zoneafternode 3to dropnode 1to 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.
michelle-cobb commented
Following.
ErikDonato commented
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.