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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map object returned as error does not affect hasValidationErrors or hasSubmitErrors form state #388

Open
mashikag opened this issue Oct 13, 2020 · 0 comments

Comments

@mashikag
Copy link

mashikag commented Oct 13, 2020

Are you submitting a bug report or a feature request?

bug report
Having an validation error returned as Map does not set hasValidationErrors form state variable to true.

What is the current behavior?

When field validation callback returns an error object that is a Map an unexpected form state is created. errors state variables is not empty but hasValidationErrors function returns false. As if there was no validation errors.

What is the expected behavior?

If field validation function returns map object then hasValidationErrors form state variable is set to true.

Sandbox Link

What's your environment?

Other information

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