-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Fix input validation and dirty state after re-enabling disabled fields #10163
Conversation
26a3d26
to
72e66e7
Compare
9db20de
to
7be6cf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, Boss. 🫡
It looks like one of the unit tests is failing, and this seems to be consequent to the react-hook-form version upgrade. This doesn't seem to be related to the code changed by this PR. |
IMHO, this PR should be against the |
Okay, I managed to track down the issue, and filed a new issue on react-hook-form's repo: https://github.com/react-hook-form/react-hook-form/issues/12217 Depending on their answer, we may need to apply the workaround I mentioned to the Let's wait for their reply before taking actions. |
@slax57 seems like they tried to optimize renders by only setting isValidating for inputs that has async validation |
@michel-paiva Okay, so this will probably not get fixed on their side. Now, can you please rebase your branch and PR to target the Thank you. |
…s, by updating react-hook-form and removing workaround
…orm 7.53.0 (cherry picked from commit 303fdc3)
@slax57 done as you said, let's see! |
Problem
Related issues:
Closes #10156
Closes #9870
Solution
react-hook-form
controller.How To Test