Skip to content

Commit 014b43b

Browse files
committed
chore(*): Add check that checks specifically for zoneless-ness.
1 parent 8aac828 commit 014b43b

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

projects/igniteui-angular/grids/grid/src/grid-base.directive.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7771,8 +7771,7 @@ export abstract class IgxGridBaseDirective implements GridType,
77717771
this.changeRowEditingOverlayStateOnScroll(this.crudService.rowInEditMode);
77727772
}
77737773
};
7774-
7775-
if (NgZone.isInAngularZone() && this.zone.isStable) {
7774+
if (this.isZonelessChangeDetection()) {
77767775
this.cdr.detectChanges();
77777776
callback();
77787777
} else {
@@ -7802,6 +7801,10 @@ export abstract class IgxGridBaseDirective implements GridType,
78027801
this.gridScroll.emit(args);
78037802
}
78047803

7804+
protected isZonelessChangeDetection(): boolean {
7805+
return this.zone.constructor.name === 'NoopNgZone';
7806+
}
7807+
78057808
protected hasMenuPinningActions(): boolean {
78067809
const strip = this.actionStrip;
78077810
const actionButtons = strip?.actionButtons;

0 commit comments

Comments
 (0)