Skip to content

Commit

Permalink
fix(module:input-number): fix NG0600 error (#8955)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 authored Jan 3, 2025
1 parent c3e719a commit 8d6135e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/input-number/input-number.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
OnInit,
output,
signal,
untracked,
viewChild,
ViewEncapsulation
} from '@angular/core';
Expand Down Expand Up @@ -328,7 +329,7 @@ export class NzInputNumberComponent implements OnInit, ControlValueAccessor {
}

writeValue(value: number | null): void {
this.setValue(value);
untracked(() => this.setValue(value));
}

registerOnChange(fn: OnChangeType): void {
Expand Down

0 comments on commit 8d6135e

Please sign in to comment.