the clearErrors function sets the isValid attribute to true when the form is invalid #7517
-
First of all, I apologize for the English, I am using google translate. I have a field using the controller component that has a component inside |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
I believe this is fixed in the latest version |
Beta Was this translation helpful? Give feedback.
-
What's your react-hook-form package version? Works fine with the latest 7.23.0 version.
|
Beta Was this translation helpful? Give feedback.
-
Many thanks to both of you for the quick response. With the version change it was solved and thank you very much for the example. Now the problem that is happening to me is that the error is eliminated but the isValid attribute remains false even if there is no error and it is the attribute that I use to see if it can advance in the stepper or not. I hope you can help me. Thank you very much. Again I apologize for the english. |
Beta Was this translation helpful? Give feedback.
What's your react-hook-form package version? Works fine with the latest 7.23.0 version.
Check out this codesandbox to see if you do anything different. Try your version of the react-hook-form package with the codesandbox.