Open vatraiadarsh opened 6 months ago
tldr
there were 5 nodes with id [100,101,102,103,104]
i collpased 2 of then (secondlast and last) [103,104]
when i filter with allNodes.filter(x => x.data._expanded) i think expected behaviour should be [100,101,102] should be expanded
but only [100 and 101] are expanded
return previewData = chart.getChartState().root.descendants() .map(node => (node.data._expanded = true, node.data));
this is the workaround (causing some performance issue as i have large number of nodes) for what i am trying to achieve but i still wanted to know why only the [100 and 101] are expanded and not [103]
I think you need to set _expanded to children, _expanded
in this case means node is visible
with that changes, i tried collapsing on Lex (By clicking on Btn that is on Lex), it's still the same issue
To Reproduce Steps to reproduce the behavior:
Expected behavior Only the Last Node should be collapsed