-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
issue: Undesired focus on error field after revalidation while using 'watch' #9972
Comments
I already mentioned it in #9973, this behaviour is due to the
|
@Moshyfawn I've just updated my codesandbox and moved |
Screen.Recording.2023-02-22.at.7.42.57.am.movI couldn't reproduce the issue. |
Submit -> Edit 2nd input |
Sry, I'm currently at work |
no worries, i will look into it. |
This is somewhat related to MUI text filed, I don't think it's a root cause of react hook form. I have switched to a native input and the issue go away, and rmeove |
I was able to repro excluding both MUI & Seem like the behaviour is induced by |
thanks a lot @Moshyfawn i will patch it now |
Version Number
7.43.1
Codesandbox/Expo snack
https://codesandbox.io/s/rhf-bug-with-focus-on-error-field-after-revalidation-1q19nv
Steps to reproduce
Expected behaviour
The first text input shouldn't be focused after the second one is filled. When 'watch' is not used there's no error.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: