From 8d6135e65a6aa716678b9485e3e7790182d160b1 Mon Sep 17 00:00:00 2001 From: HyperLife1119 Date: Fri, 3 Jan 2025 20:08:37 +0800 Subject: [PATCH] fix(module:input-number): fix NG0600 error (#8955) --- components/input-number/input-number.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/input-number/input-number.component.ts b/components/input-number/input-number.component.ts index 266f9407fd7..11e41a66482 100644 --- a/components/input-number/input-number.component.ts +++ b/components/input-number/input-number.component.ts @@ -25,6 +25,7 @@ import { OnInit, output, signal, + untracked, viewChild, ViewEncapsulation } from '@angular/core'; @@ -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 {