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
{{ message }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
I'm passing the formik validation errors and the API fetching errors as Form.Input error and feedback properties, no any problem till here.
The problem comes when I pass the feedback and it is not showed in the page:
When there is a formik validation error, it is showed normally and the input is also styled as it requires:
And It is because if there is an error, the input receives the is-invalid, and state-invalid classes are passed to the control group, while feedback just gets the text but does not change the form control style:
So, in order to get also the server errors, we had to pass it feedback error also to the error property:
So, finally, what is the idea of the feedback property?
Thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
More than an issue this is a question:
I'm passing the
formik
validation errors and the API fetching errors asForm.Input
error and feedback properties, no any problem till here.The problem comes when I pass the feedback and it is not showed in the page:
When there is a
formik
validation error, it is showed normally and the input is also styled as it requires:And It is because if there is an error, the input receives the
is-invalid
, andstate-invalid
classes are passed to the control group, while feedback just gets the text but does not change the form control style:So, in order to get also the server errors, we had to pass it feedback error also to the error property:
So, finally, what is the idea of the feedback property?
Thanks.
The text was updated successfully, but these errors were encountered: