Skip to content

Regression with v7: precision and formatter collide #320

Description

@Mathieuu

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.

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions