From f2598260085297f494bed5b115e0ccf9eec663d1 Mon Sep 17 00:00:00 2001 From: Nikita Barsukov Date: Tue, 14 Jan 2025 16:52:02 +0300 Subject: [PATCH] fix(kit): `InputNumber` should handle initial `ngModel` phantom `null` value (#10168) --- projects/kit/components/input-number/input-number.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/kit/components/input-number/input-number.component.ts b/projects/kit/components/input-number/input-number.component.ts index ddc5d19fcd40..b9f7be9c3211 100644 --- a/projects/kit/components/input-number/input-number.component.ts +++ b/projects/kit/components/input-number/input-number.component.ts @@ -179,7 +179,7 @@ export class TuiInputNumber extends TuiControl { public override writeValue(value: number | null): void { super.writeValue(value); - this.textfieldValue.set(this.formatNumber(value)); + this.textfieldValue.set(this.formatNumber(this.value())); } protected onBlur(): void {