Feature suggestion: Focus on first errored field #715
Unanswered
itsUndefined
asked this question in
Ideas
Replies: 1 comment 4 replies
-
+1 it's also useful when you have a form that is scrollable, as focusing the element will scroll that element into view. This is something that react-hook-form does, but it only works with input elements. One idea could be to pass a ref to some metadata of the field and then be able to access that metadata after validation occurs. Then I could add my own focus/scroll implementation:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This would improve the accessibility of the form
Beta Was this translation helpful? Give feedback.
All reactions