TreeSelect selection expands sibling nodes above the selection #11224
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
When a node is selected in the TreeSelect component, and the node is not at the root of the list of components, the component will expand any siblings of the node above it. This is because while iterating through children, it appends each sibling to the
path
as it iterates through instead of creating a new array with only the current iterating item added to the path.Expected behavior
Only the selected node and its parents should be expanded.
The text was updated successfully, but these errors were encountered: