Docs-Suggestion: With Material UI #3534
Unanswered
babaliaris
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In this example: With material ui you are missing the
onBlur={formik.handleBlur}
prop. I'm not sure if this is on purpose but even if it is, it just doesn't make sense.If the
onBlur
is not handled by Formik, then the touched properties are not getting updated and you don't see any errors untilyou hit the submit button at least once (that is going to set true to all touched properties anyway).
This is a very bad user experience and it took me a whole day to figure out that I had to pass the onBlur prop to make it work...
Probably somewhere else in your docs you are talking about
onBlur
, but people like me who googled "How to integrate MUI with Formik" and ended up on this example, will probably struggle a lot searching in the docs until they figure out how to make it work.Beta Was this translation helpful? Give feedback.
All reactions