InputNumber can't enter 0.0x using minFractionDigits/mode="currency" #5170
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the PrimeVue InputNumber component on the page https://primevue.org/inputnumber, the component incorrectly interprets decimal values. Specifically, when a user attempts to enter the decimal value "0.04" into any of the example fields that accept decimal values with
minFractionDigits
ormode="currency"
set, the component incorrectly displays the entered value as "0.40". This issue represents a significant problem as it misrepresents the user's intended input, potentially leading to inaccurate data entry and processing.Reproducer
https://codesandbox.io/p/devbox/upbeat-panini-cmw26s?file=%2Fsrc%2FApp.vue%3A5%2C54-5%2C71
PrimeVue version
3.47.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
No response
The text was updated successfully, but these errors were encountered: