Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Commit 704cdc7

Browse files
authored
Changed: UpdateSettings is moved into runOutsideAngular. #116 (#131)
1 parent 8d7aec3 commit 704cdc7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/ce/src/hot-table.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ export class HotTableComponent implements AfterContentInit, OnChanges, OnDestroy
339339
return;
340340
}
341341

342-
this.hotInstance.updateSettings(newSettings, false);
342+
this._ngZone.runOutsideAngular(() => {
343+
this.hotInstance.updateSettings(newSettings, false);
344+
});
343345
}
344346

345347
onAfterColumnsChange(): void {

lib/pro/src/hot-table.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ export class HotTableComponent implements AfterContentInit, OnChanges, OnDestroy
373373
return;
374374
}
375375

376-
this.hotInstance.updateSettings(newSettings, false);
376+
this._ngZone.runOutsideAngular(() => {
377+
this.hotInstance.updateSettings(newSettings, false);
378+
});
377379
}
378380

379381
onAfterColumnsChange(): void {

0 commit comments

Comments
 (0)