stackworx / formik-mui

Bindings for using Formik with Material-UI

Home Page:https://stackworx.github.io/formik-mui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pressing tab on a opened multiple select input causes a error

jockjocko opened this issue Β· comments

Current Behaviour 😯

Pressing tab on a opened multiple select input causes the error
MUI: The "value" prop must be an array when using the "Select" component with "multiple".

Expected Behaviour πŸ€”

Pressing tab on a opened multiple select input should close the dropdown and navigate to the next input

Steps to Reproduce πŸ•Ή

This happens on the documentation example code pen as well

thanks for the report @jockjocko

It's caused by this workaround: https://github.com/stackworx/formik-mui/blob/main/packages/formik-mui/src/Select.tsx#L52

Not sure how best to fix it...