Skip to content

Commit 24082ac

Browse files
committed
fix(igxGrid): In case zone is already stable emit detect and emit chunkLoad.
1 parent 4f4f549 commit 24082ac

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7765,12 +7765,19 @@ export abstract class IgxGridBaseDirective implements GridType,
77657765
this.verticalScrollContainer.onScroll(event);
77667766
this.disableTransitions = true;
77677767

7768-
this.zone.onStable.pipe(first()).subscribe(() => {
7768+
const callback = () => {
77697769
this.verticalScrollContainer.chunkLoad.emit(this.verticalScrollContainer.state);
77707770
if (this.rowEditable) {
77717771
this.changeRowEditingOverlayStateOnScroll(this.crudService.rowInEditMode);
77727772
}
7773-
});
7773+
};
7774+
7775+
if (this.zone.isStable) {
7776+
this.cdr.detectChanges();
7777+
callback();
7778+
} else {
7779+
this.zone.onStable.pipe(first()).subscribe(callback);
7780+
}
77747781
this.disableTransitions = false;
77757782

77767783
this.hideOverlays();

0 commit comments

Comments
 (0)