We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
If mask is defined, unmask gets called on a potentially empty string, causing two unnecessary re-renders.
mask
unmask
In the case of my team, this causes field validation to be triggered, rendering an error message even before the user enters a value.
I'd expect unmask to be called only when the field contains a value.
unmask gets called, causing two unnecessary renders, and triggering field validation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description of the bug
If
mask
is defined,unmask
gets called on a potentially empty string, causing two unnecessary re-renders.In the case of my team, this causes field validation to be triggered, rendering an error message even before the user enters a value.
Expected behavior
I'd expect
unmask
to be called only when the field contains a value.Actual behavior
unmask
gets called, causing two unnecessary renders, and triggering field validation.The text was updated successfully, but these errors were encountered: