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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 { |
|
|
|
|