Skip to content
This repository was archived by the owner on Jun 22, 2020. It is now read-only.

Commit 1ff1519

Browse files
committed
fix: recursive app.tick
1 parent cd5fbbf commit 1ff1519

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

projects/table-builder/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular-ru/ng-table-builder",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"license": "MIT",
55
"bugs": {
66
"url": "https://github.com/Angular-RU/ng-table-builder/issues"

projects/table-builder/src/lib/table/styles/scrollbar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
.table-grid__root,
3232
.table-grid__column,
3333
.table-grid__column-area-content {
34-
scroll-behavior: auto;
34+
scroll-behavior: smooth;
3535
}

projects/table-builder/src/lib/table/table-builder.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export class TableBuilderComponent extends TableBuilderApiImpl
549549
}
550550

551551
private viewForceRefresh(): void {
552-
this.ngZone.run((): void => {
552+
this.ngZone.runOutsideAngular((): void => {
553553
window.clearTimeout(this.timeoutCheckedTaskId);
554554
this.timeoutCheckedTaskId = window.setTimeout((): void => {
555555
this.forcedRefresh = true;
@@ -625,7 +625,7 @@ export class TableBuilderComponent extends TableBuilderApiImpl
625625
this.rendering = false;
626626
this.calculateViewport(true);
627627
this.recheckViewportChecked();
628-
this.ngZone.run((): void => {
628+
this.ngZone.runOutsideAngular((): void => {
629629
window.setTimeout((): void => {
630630
this.isRendered = true;
631631
detectChanges(this.cd);

0 commit comments

Comments
 (0)