You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also decimalScale is set to 2 and fixedDecimal is set to true.
Describe the issue and the actual / expected behavior
when user types in 3 decimal places, the input box UI rounds up (e.g. 1.239 shows up as 1.24 in the UI), ok great. But the state being set in the form is 1.239 - I don't want that, I just want 2 digits. i.e. what you see is what you get - no mismatch between UI and form state.
When doing the same as https://s-yadav.github.io/react-number-format/docs/customization#intlnumberformat-based-formatting but with 2 maxFractionalDigits...
Also decimalScale is set to 2 and fixedDecimal is set to true.
Describe the issue and the actual / expected behavior
when user types in 3 decimal places, the input box UI rounds up (e.g. 1.239 shows up as 1.24 in the UI), ok great. But the state being set in the form is 1.239 - I don't want that, I just want 2 digits. i.e. what you see is what you get - no mismatch between UI and form state.
Provide a CodeSandbox link illustrating the issue
Provide steps to reproduce this issue
notable props
and try this format prop on a
NumberFormatBase
(along with therest
props above (there is a type mismatch withsize
, so its omitted)The text was updated successfully, but these errors were encountered: