I'm having Formik form with validationSchema and input fields which are implemented like this:
<TextField
error={Boolean(touched.email && errors.email)}
fullWidth
helperText={touched.email && errors.email}
label="Email address"
name="email"
onBlur={handleBlur}
onChange={handleChange}
required
value={values.email}
variant="outlined"
/>
If the user touches the field, it will be validated and he will see an error message. However, if he doesn't touch the field and tries to submit the form, validation will prevent it but the error message will not be displayed.
Is it possible to force each field to be touched onSubmit or something else that would cover this case?