Skip to content

Commit

Permalink
fix(tree): fix nested node is not working (#10635)
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao authored and josephperrott committed Mar 30, 2018
1 parent 5b7a6a3 commit 7857b92
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/tree/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,15 @@ export class MatNestedTreeNode<T> extends _MatNestedTreeNodeMixinBase<T>

this.tabIndex = Number(tabIndex) || 0;
}

// This is a workaround for https://github.com/angular/angular/issues/23091
// In aot mode, the lifecycle hooks from parent class are not called.
// TODO(tinayuangao): Remove when the angular issue #23091 is fixed
ngAfterContentInit() {
super.ngAfterContentInit();
}

ngOnDestroy() {
super.ngOnDestroy();
}
}

0 comments on commit 7857b92

Please sign in to comment.