From fbaf913111b5dbeb5b981a89a37c015bfd7b96eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:43:24 +0300 Subject: [PATCH] Fixed #15772 | InputNumber - MinFractionDigits and MaxFractionDigits no longer respect a value of 0 --- packages/primeng/src/inputnumber/inputnumber.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/primeng/src/inputnumber/inputnumber.ts b/packages/primeng/src/inputnumber/inputnumber.ts index 4c766c6a13a..6afbed7844f 100644 --- a/packages/primeng/src/inputnumber/inputnumber.ts +++ b/packages/primeng/src/inputnumber/inputnumber.ts @@ -590,8 +590,8 @@ export class InputNumber extends BaseComponent implements OnInit, AfterContentIn currency: this.currency, currencyDisplay: this.currencyDisplay, useGrouping: this.useGrouping, - minimumFractionDigits: this.minFractionDigits, - maximumFractionDigits: this.maxFractionDigits + minimumFractionDigits: this.minFractionDigits ?? undefined, + maximumFractionDigits: this.maxFractionDigits ?? undefined }; }