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
The text was updated successfully, but these errors were encountered:
Mathieuu
changed the title
Regression with v7: precision and formatter can no longer be used together
Regression with v7: precision and formatter collide
Apr 23, 2021
Since v7, the precision is skipped if a formatter is passed.
Here's an example with precision 2 and a formatter adding columns for every thousand:
100,000.00
With v6.1.2:
https://codesandbox.io/s/spring-sunset-dwr0o?file=/src/App.js
With v7
https://codesandbox.io/s/trusting-dan-vmhmc?file=/src/App.js
Here's the fault line: https://github.com/react-component/input-number/blob/master/src/InputNumber.tsx#L175
I am not sure what the right fix would be though.
The text was updated successfully, but these errors were encountered: