Merge pull request #18302 from abpframework/issue-18078

Remove setTimeout and markForCheck
pull/18397/head
Masum ULU 1 year ago committed by GitHub
commit 43f8fd4220
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save