You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A different error being shown when editing input field compared to when submitting the form.
What is the expected correct behavior?
I think it would be correct that the order of specified requirements for an input field also represents order of errors being thrown. {handleChange} apparently already has a correct behavior.
Summary
In usage with
yup
input validator there is a different error being shown when editing the input field, compared to when submitting the form.Steps to reproduce
Set up an input field with multiple field requirements using
yup
schemaExample Project
https://codesandbox.io/s/xenodochial-sound-o6vqtf?file=/App.svelte
What is the current bug behavior?
A different error being shown when editing input field compared to when submitting the form.
What is the expected correct behavior?
I think it would be correct that the order of specified requirements for an input field also represents order of errors being thrown.
{handleChange}
apparently already has a correct behavior.Relevant logs and/or screenshots
Correct behavior with
{handleChange}
Wrong behavior with
{handleSubmit}
Possible fixes
#161
The text was updated successfully, but these errors were encountered: