'Validation(VeeValidate with yup) in multiselect is not working
in this case herd is my multi select dropdown. my issue is now i am unable to reset the value of the herd because of the validation is not working technologies : vuejs3,
- List item
typescript plugin : multiselect const schema = yup.object({ promotional: yup.mixed(), code: yup.string().required('Animal Id is required'), farm_id: yup.string().required('Farm is required'), herd_id: yup.string().required('Herd is required'), }) Herds <Multiselect v-model="herd_id" autocomplete="herd" :searchable="true" v-bind="field" placeholder="Select a herd" :options="herds" @input="getHerdId" /> {{ errorMessage }}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
