Skip to content

onInputChange is triggered on initial render when allowEmptyFormatting is true #878

@VanemalP

Description

@VanemalP

Describe the issue and the actual behavior

onInputChange is triggered on initial render when allowEmptyFormatting is true

Describe the expected behavior

onInputChange should not trigger on initial render, only if value, format etc. update after that

Provide a CodeSandbox link illustrating the issue

https://codesandbox.io/p/sandbox/react-number-format-onvaluechange-583954

Provide steps to reproduce this issue

Without doing anything, open the console and notice that onInputChange has been triggered.

Please check the browsers where the issue is seen

  • Chrome
  • Chrome (Android)
  • Safari (OSX)
  • Safari (iOS)
  • Firefox
  • Firefox (Android)

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