Vue.D3.tree icon indicating copy to clipboard operation
Vue.D3.tree copied to clipboard

Adding a child node expands all nodes in the tree.

Open rahulsabbineni opened this issue 5 years ago • 2 comments

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.

rahulsabbineni avatar Sep 13 '20 17:09 rahulsabbineni

Same thing happens when deleting a node

stuft2 avatar Oct 02 '20 20:10 stuft2

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

David-Desmaisons avatar Oct 03 '20 03:10 David-Desmaisons