flipbyte / formik-json-schema

Easily create react forms using JSON / Javascript Object
MIT License
152 stars 40 forks source link

React Select Multi error: final value was: `null` #28

Closed romanpod closed 5 years ago

romanpod commented 5 years ago

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.