Skip to content

Commit dabce48

Browse files
committed
fix(material/tree): change change detection strategy
fix change detection strategy Fixes #21922
1 parent 6c30470 commit dabce48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/tree/tree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import {
6565
// The view for `CdkTree` consists entirely of templates declared in other views. As they are
6666
// declared elsewhere, they are checked when their declaration points are checked.
6767
// tslint:disable-next-line:validate-decorators
68-
changeDetection: ChangeDetectionStrategy.Default,
68+
changeDetection: ChangeDetectionStrategy.OnPush,
6969
standalone: true,
7070
imports: [CdkTreeNodeOutlet],
7171
})

0 commit comments

Comments
 (0)