I believe the onBlur prop is missing.
I'm using Formik to handle form state, and I should be able to trigger the validation on the onBlur event. So when a user open the select and close it without selecting anything, the validation display the error message.
I (kind of) found a workaround to get it working by using the onOpen prop, but it feels wrong as it immediately display the validation error and not after closing the select.
I believe the
onBlur
prop is missing. I'm usingFormik
to handle form state, and I should be able to trigger the validation on theonBlur
event. So when a user open the select and close it without selecting anything, the validation display the error message. I (kind of) found a workaround to get it working by using theonOpen
prop, but it feels wrong as it immediately display the validation error and not after closing the select.