Browse Source

Merge pull request #18302 from abpframework/issue-18078

Remove setTimeout and markForCheck
pull/18397/head
Masum ULU 3 years ago
committed by GitHub
parent
commit
43f8fd4220
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts

2
npm/ng-packs/packages/core/src/lib/abstracts/ng-model.component.ts

@ -47,7 +47,7 @@ export class AbstractNgModelComponent<T = any, U = T> implements ControlValueAcc
writeValue(value: T): void {
this._value = this.valueLimitFn(value, this._value) || value;
setTimeout(() => this.cdRef.markForCheck(), 0);
this.cdRef.markForCheck();
}
registerOnChange(fn: any): void {

Loading…
Cancel
Save