Skip to content

Commit a702674

Browse files
authored
fix(module:tree-view): trigger markforcheck after nodes changed (#7426)
1 parent 1a9a2dd commit a702674

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/tree-view/tree-virtual-scroll-view.ts

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export class NzTreeVirtualScrollViewComponent<T> extends NzTreeView<T> implement
7777
override renderNodeChanges(data: T[] | readonly T[]): void {
7878
this.nodes = new Array(...data).map((n, i) => this.createNode(n, i));
7979
this._dataSourceChanged.next();
80+
this.changeDetectorRef.markForCheck();
8081
}
8182

8283
private createNode(nodeData: T, index: number): NzTreeVirtualNodeData<T> {

0 commit comments

Comments
 (0)