Skip to content

Commit

Permalink
fix(menu): fix items not being prepared when passed through input (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa authored Feb 2, 2018
1 parent 78d86a3 commit 2e9d14a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/framework/theme/components/menu/menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ export class NbMenuComponent implements OnInit, AfterViewInit, OnDestroy {
this.menuInternalService.updateSelection(this.items, this.tag, this.autoCollapseValue)
});

// TODO: this probably won't work if you pass items dynamically into items input
this.menuInternalService.prepareItems(this.items);
this.items.push(...this.menuInternalService.getItems());
}

Expand Down

0 comments on commit 2e9d14a

Please sign in to comment.