From a13ddf2e8aa3ea7820d9c2d9cc7458c4ea965ed6 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Fri, 17 Mar 2017 21:48:20 -0700 Subject: [PATCH] feat(aio): expand nav menu branch of select item on page load --- aio/src/app/layout/nav-item/nav-item.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/aio/src/app/layout/nav-item/nav-item.component.ts b/aio/src/app/layout/nav-item/nav-item.component.ts index 26e7e77a69..55189fcaec 100644 --- a/aio/src/app/layout/nav-item/nav-item.component.ts +++ b/aio/src/app/layout/nav-item/nav-item.component.ts @@ -17,6 +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.setClasses(); }