Replies: 3 comments
-
Maybe you should find the tab which contains the error field before |
Beta Was this translation helpful? Give feedback.
-
@vuggy17 Thanks for the response. That's the solution I was thinking about and implemented but I thought there is another way of doing this. |
Beta Was this translation helpful? Give feedback.
-
If the input was never mounted (and its |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I have a big form that is split in 2 tabs. I have some validation and call
setFocus
to se the focus on the fields that have an error. When I press the submit button and the inputs are on the unmounted tab(the one that us not selected), I get this error:I think the problem arises because the inputs are being unmounted and RHF is trying to
setFocus
on them, but I don't know how can I solve this.Can someone give me a hint on this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions