react-number-format icon indicating copy to clipboard operation
react-number-format copied to clipboard

onInputChange is triggered on initial render when allowEmptyFormatting is true

Open VanemalP opened this issue 11 months ago • 0 comments

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

  • [x] Chrome
  • [ ] Chrome (Android)
  • [ ] Safari (OSX)
  • [ ] Safari (iOS)
  • [ ] Firefox
  • [ ] Firefox (Android)

VanemalP avatar Jan 15 '25 15:01 VanemalP