InputNumber: Incorrect default value for minFractionDigits when set to null #6761
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
When InputNumber is used with the minFractionDigits attributes explicitly set to null, the default value used by the control is 0.
https://primereact.org/inputnumber/#api.InputNumber.props.minFractionDigits
It is described in the documentation "the default for currency formatting is the number of minor unit digits provided by the ISO 4217 currency code list"
Reproducer
https://stackblitz.com/edit/mwqeju?file=src%2FApp.jsx
PrimeReact version
10.6.6
React version
17.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
Chrome
Steps to reproduce the behavior
Default value is 0 fractional digits
Expected behavior
Default value should be 2 fractional digits in currency mode
The text was updated successfully, but these errors were encountered: