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
When mask is empty string and the format prop includes a number (e.g. +359 ### ### ###), onValueChange callback returns an incorrect value. Instead of only reflecting the user's input, the returned value also includes the static number from the format prop.
Describe the expected behavior
the onInputChange callback should return as value only the user's input, without including the static number from the format prop.
Describe the issue and the actual behavior
When
mask
is empty string and theformat
prop includes a number (e.g. +359 ### ### ###),onValueChange
callback returns an incorrect value. Instead of only reflecting the user's input, the returned value also includes the static number from theformat
prop.Describe the expected behavior
the
onInputChange
callback should return as value only the user's input, without including the static number from theformat
prop.Provide a CodeSandbox link illustrating the issue
https://codesandbox.io/p/sandbox/react-number-format-empty-string-mask-28528j
Provide steps to reproduce this issue
onInputValueChange
includes the static number from theformat
prop, rather than just the user's input.Please check the browsers where the issue is seen
The text was updated successfully, but these errors were encountered: