React Select Multi does not recognize selected values and returns null. Yup validation fails with the following message:
"react-select-multi must be a array type, but the final value was: null (cast from the value { "0": "\"chocolate\"" }). If "null" is intended as an empty value be sure to mark the schema as .nullable()"
Easily reproduced in Demo: select any value from the list and trigger validation.
React Select Multi does not recognize selected values and returns null. Yup validation fails with the following message: "react-select-multi must be a
array
type, but the final value was:null
(cast from the value{ "0": "\"chocolate\"" }
). If "null" is intended as an empty value be sure to mark the schema as.nullable()
" Easily reproduced in Demo: select any value from the list and trigger validation.