mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(tree): fix nested node is not working (#10635)
This commit is contained in:
committed by
Joey Perrott
parent
5b7a6a39cc
commit
7857b92c47
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user