Skip to content

Commit

Permalink
Merge pull request #16 from navedqb/fix--inputnumber-null-fractions
Browse files Browse the repository at this point in the history
fix: incorrect default value for minFractionDigits when set to null
  • Loading branch information
navedqb authored Jun 14, 2024
2 parents 21643b8 + 340ad3b commit 3e9ccbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
};
Expand Down

0 comments on commit 3e9ccbf

Please sign in to comment.