feat(aio): when select node in sidebar close other expanded nodes
This commit is contained in:

committed by
Pete Bacon Darwin

parent
abecf3eb6d
commit
e20a72280b
@ -17,7 +17,7 @@ export class NavItemComponent implements OnChanges {
|
||||
ngOnChanges(changes: SimpleChanges) {
|
||||
if (changes['selectedNodes'] || changes['node']) {
|
||||
this.isSelected = this.selectedNodes.indexOf(this.node) !== -1;
|
||||
this.isExpanded = this.isExpanded || this.isSelected;
|
||||
this.isExpanded = this.isSelected;
|
||||
}
|
||||
this.setClasses();
|
||||
}
|
||||
|
Reference in New Issue
Block a user