From d34e41c54100228e97a78577e2543ebae8e4496b Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:57:45 +0530 Subject: [PATCH] fixes minFractionDigits defaulting to 0 when set to null (#6762) --- components/lib/inputnumber/InputNumber.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index a6e10423bb..43f36f8a05 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -58,8 +58,8 @@ export const InputNumber = React.memo( currency: props.currency, currencyDisplay: props.currencyDisplay, useGrouping: props.useGrouping, - minimumFractionDigits: props.minFractionDigits, - maximumFractionDigits: props.maxFractionDigits, + minimumFractionDigits: props.minFractionDigits ?? undefined, + maximumFractionDigits: props.maxFractionDigits ?? undefined, roundingMode: props.roundingMode }; };