@angular/cdk 18.2.3 → 18.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/drag-drop/directives/drag.mjs +4 -1
- package/esm2022/listbox/listbox.mjs +8 -2
- package/esm2022/overlay/overlay-ref.mjs +7 -2
- package/esm2022/tree/tree.mjs +11 -4
- package/esm2022/version.mjs +1 -1
- package/fesm2022/cdk.mjs +1 -1
- package/fesm2022/cdk.mjs.map +1 -1
- package/fesm2022/drag-drop.mjs +3 -0
- package/fesm2022/drag-drop.mjs.map +1 -1
- package/fesm2022/listbox.mjs +7 -1
- package/fesm2022/listbox.mjs.map +1 -1
- package/fesm2022/overlay.mjs +6 -1
- package/fesm2022/overlay.mjs.map +1 -1
- package/fesm2022/tree.mjs +10 -3
- package/fesm2022/tree.mjs.map +1 -1
- package/overlay/index.d.ts +2 -0
- package/package.json +1 -1
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
package/fesm2022/tree.mjs
CHANGED
|
@@ -555,9 +555,16 @@ class CdkTree {
|
|
|
555
555
|
view.context.$implicit = newData;
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
|
-
//
|
|
559
|
-
//
|
|
560
|
-
this._changeDetectorRef.
|
|
558
|
+
// Note: we only `detectChanges` from a top-level call, otherwise we risk overflowing
|
|
559
|
+
// the call stack since this method is called recursively (see #29733.)
|
|
560
|
+
// TODO: change to `this._changeDetectorRef.markForCheck()`,
|
|
561
|
+
// or just switch this component to use signals.
|
|
562
|
+
if (parentData) {
|
|
563
|
+
this._changeDetectorRef.markForCheck();
|
|
564
|
+
}
|
|
565
|
+
else {
|
|
566
|
+
this._changeDetectorRef.detectChanges();
|
|
567
|
+
}
|
|
561
568
|
}
|
|
562
569
|
/**
|
|
563
570
|
* Finds the matching node definition that should be used for this node data. If there is only
|