Skip to content

Commit 8d6135e

Browse files
fix(module:input-number): fix NG0600 error (NG-ZORRO#8955)
1 parent c3e719a commit 8d6135e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/input-number/input-number.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
OnInit,
2626
output,
2727
signal,
28+
untracked,
2829
viewChild,
2930
ViewEncapsulation
3031
} from '@angular/core';
@@ -328,7 +329,7 @@ export class NzInputNumberComponent implements OnInit, ControlValueAccessor {
328329
}
329330

330331
writeValue(value: number | null): void {
331-
this.setValue(value);
332+
untracked(() => this.setValue(value));
332333
}
333334

334335
registerOnChange(fn: OnChangeType): void {

0 commit comments

Comments
 (0)