Formik file input messages
I am having issue showing error message for file input using Formik. My first two inputs are validated properly, but problem is, when I upload files.
When I successfully submit form (when all fields are valid), and only after successful submit if I upload wrong file format, error message is shown.
When I upload wrong file format for the first time, error message is not shown.
Here is my codesandbox
Any help would be appreciated
Source: React – Stack OverflowNovember 26, 2021