Skip to content

Commit 04c91fc

Browse files
committed
fix(cdk/tree): fix nested nodes not rendering children
1 parent 6e9b282 commit 04c91fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cdk/tree/nested-node.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,11 @@ export class CdkNestedTreeNode<T, K = T>
7979
} else if (isObservable(childrenNodes)) {
8080
childrenNodes
8181
.pipe(takeUntil(this._destroyed))
82-
.subscribe(() => this.updateChildrenNodes());
82+
.subscribe(result => this.updateChildrenNodes(result));
8383
}
84+
this.nodeOutlet.changes
85+
.pipe(takeUntil(this._destroyed))
86+
.subscribe(() => this.updateChildrenNodes());
8487
}
8588

8689
// This is a workaround for https://github.com/angular/angular/issues/23091

0 commit comments

Comments
 (0)