From ebfdc3ca3d047fdd50b1ddd930828411a1030fb7 Mon Sep 17 00:00:00 2001 From: mark7p Date: Thu, 26 Dec 2024 03:44:17 +0800 Subject: [PATCH] write value parsed --- packages/primeng/src/inputnumber/inputnumber.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primeng/src/inputnumber/inputnumber.ts b/packages/primeng/src/inputnumber/inputnumber.ts index 86a92039eb5..c6347231093 100644 --- a/packages/primeng/src/inputnumber/inputnumber.ts +++ b/packages/primeng/src/inputnumber/inputnumber.ts @@ -1508,7 +1508,7 @@ export class InputNumber extends BaseComponent implements OnInit, AfterContentIn } writeValue(value: any): void { - this.value = value; + this.value = value ? this.parseValue(value.toString()) : value; this.cd.markForCheck(); }