Skip to content

Commit d63064d

Browse files
AsamKmarjan-georgiev
authored andcommitted
Do row rendering in angular zone with virtual scrolling (swimlane#1375)
1 parent 1ec44f2 commit d63064d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/components/body/body.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ export class DataTableBodyComponent implements OnInit, OnDestroy {
413413
}
414414

415415
this.temp = temp;
416-
this.cd.detectChanges();
417416
}
418417

419418
/**

src/components/body/scroller.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ export class ScrollerComponent implements OnInit, OnDestroy {
4646
if (this.scrollbarV || this.scrollbarH) {
4747
const renderer = this.renderer;
4848
this.parentElement = renderer.parentNode(renderer.parentNode(this.element));
49-
this.ngZone.runOutsideAngular(() => {
50-
this.parentElement.addEventListener('scroll', this.onScrolled.bind(this));
51-
});
49+
this.parentElement.addEventListener('scroll', this.onScrolled.bind(this));
5250
}
5351
}
5452

0 commit comments

Comments
 (0)