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
- https://codesandbox.io/s/915qlr56rp?file=/src/index.tsx:3339-3947
- Click on the "tags" input
- Press Tab
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...