p-InputNumber : minFraction digit not working as expected #13833
Labels
Resolution: Stale
Issue or pull request is inactivity and unfortunately it will be *closed* if there is no response
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
inside p-inputnumber, the displayed value and the stored value of the component are different if you use minFractionDigits. I configured my inputNumber with minFractionDigits and maxFractionDigits 2 to get always a number with 2 digits. It is working on the UI, but the stored value somethimes has no digits.
This occurs when the typed number has no digits like "1" or if you type 0 as digit.
Environment
Angular 16 app. Can also be reproduced on the demo page of primeng
Reproducer
https://codesandbox.io/p/sandbox/primeng-input-number-numerals-demo-forked-n9ndg8
Angular version
16.2.2
PrimeNG version
16.3.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.14.0
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
Input: 6
Displayed value: 6.00
stored value: 6
expected 6.00
The text was updated successfully, but these errors were encountered: