Skip to content

Commit

Permalink
Merge pull request #11225 from dcbroad3/master
Browse files Browse the repository at this point in the history
Fixed #11224 - TreeSelect | Fix path array algorithm in selection expansion
  • Loading branch information
cetincakiroglu committed Sep 30, 2022
2 parents c06bd63 + 67b11c9 commit f47610c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/treeselect/treeselect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ export class TreeSelect implements AfterContentInit {

if (selectedNodes.length > 0 && node.children) {
for (let childNode of node.children) {
path.push(node);
this.updateTreeBranchState(childNode, path, selectedNodes);
this.updateTreeBranchState(childNode, [...path, node], selectedNodes);
}
}
}
Expand Down

0 comments on commit f47610c

Please sign in to comment.