Skip to content

Auto-collapse other ForceDirectedTree nodes when node is exploded

By default when node with children is clicked it is “exploded” - children are shown. This demo shows how we can catch such events to automatically collapse all other open nodes when that happens.

Open in CodePen