Feature suggestion: Focus on first errored field #715
Replies: 2 comments 5 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.
-
Does anyone have news about this? I would gladly provide a PR that changes this, but I don't understand the reasoning yet. Can we always trigger that, regardless of any changes being applied between two submit attempts? |
Beta Was this translation helpful? Give feedback.
-
This would improve the accessibility of the form
Beta Was this translation helpful? Give feedback.
All reactions