I'm using
fullName: Yup.string()
.max(50, "Must be 50 characters or less")
.required("Full Name Required")
.matches(/\s+(?=[a-z])/gi, "Full Name Required")`
To make sure that the user inputs their full name into the 1st text field.
The Regex appears to be working fine as it only says that the input is invalid if the first set of characters input is not followed by a space and another lot of characters.
The only problem is that when I click away from them the text field, I get an error "full name required" then I click back to the text field and click away again, the error goes away. Each time I click on another text field the first text field errors "full name required" even though the input is actually valid.
it seems that formik validation is running on input OnChange, onTouched,OnBlur.
I have attached a short video to show exactly what is happening. I would really appreciate any help