Skip to content
New issue

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

[馃悶 bug] unmask called on focus #254

Open
aronhoyer opened this issue Nov 26, 2021 · 0 comments
Open

[馃悶 bug] unmask called on focus #254

aronhoyer opened this issue Nov 26, 2021 · 0 comments

Comments

@aronhoyer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant