patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

AddNode expands all level 1 nodes

Open jordib123 opened this issue 5 years ago • 0 comments

I have a treeview of top level nodes (see image 1), when clicking on a node, I do an AJAX request to obtain all child nodes of the clicked node and append them to the node using the AddNode function (see image 2). This works perfectly fine, however, when I collapse the node (see image 3) and add new children (obtained by AJAX using AddNode) to a different node, it automatically expands all top level nodes instead of only the parent node I just appended the children to (see image 4).

Image 1: 1_top_level_tree Image 2: 2_AJAX_expand Image 3: 3_collapse_node Image 4: 4_expands_all_top_level_nodes

jordib123 avatar Nov 16 '19 10:11 jordib123