Adding a child node expands all nodes in the tree.
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:
- Go to the demo here: https://david-desmaisons.github.io/Vue.D3.tree/tree.
- Collapse some nodes.
- Create a child node.
- All collapsed nodes will expand.
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.
Same thing happens when deleting a node
This is currently a limitation. Editing the tree will cause a redraw where expand-collapse information are resetted.