From 1926948a6ec0263affc6b45b9622aa4660fbce3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinan=20=C3=96zt=C3=BCrk?= Date: Wed, 29 Nov 2023 15:20:46 +0300 Subject: [PATCH 1/2] Remove setTimeout and markForCheck --- .../packages/core/src/lib/abstracts/ng-model.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts b/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts index 8cabb30b0d..e574d6b456 100644 --- a/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts +++ b/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts @@ -47,7 +47,6 @@ export class AbstractNgModelComponent implements ControlValueAcc writeValue(value: T): void { this._value = this.valueLimitFn(value, this._value) || value; - setTimeout(() => this.cdRef.markForCheck(), 0); } registerOnChange(fn: any): void { From 1e2ea1598c58b07792422d4fc7d206992c8930e5 Mon Sep 17 00:00:00 2001 From: Masum ULU <49063256+masumulu28@users.noreply.github.com> Date: Thu, 7 Dec 2023 09:36:21 +0300 Subject: [PATCH 2/2] remove setTimeout for trigger change detechtion --- .../packages/core/src/lib/abstracts/ng-model.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts b/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts index e574d6b456..6653880b45 100644 --- a/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts +++ b/npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts @@ -47,6 +47,7 @@ export class AbstractNgModelComponent implements ControlValueAcc writeValue(value: T): void { this._value = this.valueLimitFn(value, this._value) || value; + this.cdRef.markForCheck(); } registerOnChange(fn: any): void {