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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Calling clearErrors doesn't have affect on formState.isValid field
clearErrors
formState.isValid
To Reproduce Steps to reproduce the behavior:
There are two cases:
setValue
shouldValidate: true
errors
undefined
In both cases formState.isValid is set to false
Expected behavior formState.isValid should be set to true after "Step 2"
true
The text was updated successfully, but these errors were encountered:
fix #2972 issue around setVlaue's trigger not update async isValid
d8a6dbe
302a2d1
No branches or pull requests
Describe the bug
Calling
clearErrors
doesn't have affect onformState.isValid
fieldTo Reproduce
Steps to reproduce the behavior:
There are two cases:
setValue
in "step 2" triggers validation (shouldValidate: true
)errors
object is emptysetValue
in "step 2" doesn't trigger validationerrors
object is not empty but gotundefined
valuesIn both cases
formState.isValid
is set to falseExpected behavior
formState.isValid
should be set totrue
after "Step 2"The text was updated successfully, but these errors were encountered: