InputNumber: maxFractionDigits default is 0 and the documentation says it's 3 #5753
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
InputNumber's
maxFractionDigits
documentation says: "the default for plain number formatting is the larger of minimumFractionDigits and 3;".This is however clearly not true.
<InputNumber>
will not accept any fractional numbers unlessmaxFractionDigits
is specifically set to something.Reproducer
https://codesandbox.io/p/devbox/upbeat-darkness-j87x8q
PrimeVue version
3.29.0
Vue version
3.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
<InputNumber v-model="value" />
Expected behavior
It should work according to the documentation. Either allow 3 fractional digits by default, or the documentation should be updated to reflect the current default of 0.
The text was updated successfully, but these errors were encountered: