The keys in the errors object from the handleSubmit callback do not follow the same order as the keys in the errors object from useForm. #4796
Unanswered
pedro-funcamp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In useForm, the keys in the errors object follow the declaration order of the inputs.
However, in handleSubmit (when invalid), the keys in the errors object follow alphabetical order.
This discrepancy causes an issue when trying to focus on the first error displayed on the page.
Is this behavior expected or a potential issue?
Code example:
https://stackblitz.com/edit/wcdfet?file=src%2FApp.vue
Beta Was this translation helpful? Give feedback.
All reactions