JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

How to apply yup validation in "react-select" multiselect dropdown #4145

Closed anchal-chouvhan-altius closed 4 years ago

anchal-chouvhan-altius commented 4 years ago

I want to apply yup validation on a multiselect dropdown which is created using "react-select" library. The form is created using formik.

{i18n.t('static.role.businessfunction')}* { handleChange(e); this.businessFunctionChange(e) }} onBlur={handleBlur} name="businessFunctions" id="businessFunctions" multi required min={1} options={this.state.businessFunctionList} value={this.state.businessFunctionId} error={errors.businessFunctions} touched={touched.businessFunctions} /> {errors.businessFunctions}

bladey commented 4 years ago

Hi @anchal-chouvhan-altius!

Please don't file GitHub issues to ask questions. Use Stack Overflow with a #react-select tag.