I didn't notice a way to make multiselect component required. It always allows me to submit empty multiselect where I don't select any options at all. I think it's better to include a prop that would control requiredness.
I think it's better to control this with any-kind of form validation library... Additionally take a look at this example. Shows you how to do this validation that you want > https://vue-multiselect.js.org/#sub-custom-configuration
Thanks @PrimozRome!
@shentao when i add the required attribute to the input field in the html via chrome it works perfectly.
Can you somehow make it possible to add that attribute to the input field?
@shentao I recommend (very) to add props required in input.
Makes it easy with submit button and more semantics.
Please consider reopening this/making this toggleable @shentao 馃檹
@adrianoresende except when the input is not searchable. And when it鈥檚 a multiselect where the value isn鈥檛 stored in the input. You need to use JavaScript to validate it.
Most helpful comment
@shentao I recommend (very) to add props
requiredininput.Makes it easy with submit button and more semantics.