Skip to content

allowDecimalSeparators does't always work correctly when paste a number into the input #349

@tenkij

Description

@tenkij

allowedDecimalSeparators={[",", "."]}

decimalSeparator='.'

  1. paste '11.11', result '11.11';
  2. paste '11,11', result '1 111'

decimalSeparator=','

  1. paste '11.11', result '1 111';
  2. paste '11,11', result '11,11'

https://codesandbox.io/s/react-number-format-demo-f7245

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions