Replies: 1 comment 5 replies
-
What's the behavior you're trying to achieve? Would you mind looking into this CSB and tweaking it to closer match your use-case? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!

It's my first post here. I encountered a problem while creating custom scrolling to errors:
Refs of the first (field created using
register
) and second (field created usingcontroller
) are different and I am not able to getscrollIntoView
method from the second one.Can someone explain why they are different? How can I get seconds element regular ref while using
formState.errors
?react-hook-form version: 7.21.2
Beta Was this translation helpful? Give feedback.
All reactions