David-Desmaisons / Vue.D3.tree

Vue component to display tree based on D3.js layout.
https://david-desmaisons.github.io/Vue.D3.tree/tree
MIT License
874 stars 136 forks source link

Adding a child node expands all nodes in the tree. #72

Open rahulsabbineni opened 4 years ago

rahulsabbineni commented 4 years ago

Thank you for creating this library! I'm using Vue with d3 to allow users to edit d3 trees and reviewing this library's code has been instructive. I'm not sure if this library is still maintained, but I'm creating the following bug report because it might be helpful for other developers using this library.

When a new child node is created, every node in the graph expands to display all of its children. This behavior can be reproduced with the following steps:

Using the source provided here: https://github.com/David-Desmaisons/Vue.D3.tree/blob/master/dist/index.js, I've been able to reproduce the bug locally as well.

stuft2 commented 3 years ago

Same thing happens when deleting a node

David-Desmaisons commented 3 years ago

This is currently a limitation. Editing the tree will cause a redraw where expand-collapse information are resetted.