shentao / vue-multiselect

Universal select/multiselect/tagging component for Vue.js
https://vue-multiselect.js.org/
MIT License
6.66k stars 991 forks source link

v-model returns null for options array of object data #1711

Closed aqordeon closed 6 months ago

aqordeon commented 1 year ago

The documentation for this link is not work: https://vue-multiselect.js.org/#sub-single-select-object

I have followed the exact code but the result is not the same as what showed in the documentation. The v-model value always returns null data and all options are checked.

Expected behaviour

v-model returns the selected option object data and only the selected option is checked

Actual behaviour

v-model returns null data and all options are checked

Dependencies: Vue 3.2 Multiselect 2.6.2

smirnov-d commented 11 months ago

Hello, @aqordeon. U should use the npm install vue-multiselect@next with vue v3. see the Readme https://github.com/shentao/vue-multiselect/tree/next.