-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.$set is not a function #81
Comments
Stack trace vue-multi-select.common.js?dcc6:3799 Uncaught (in promise) TypeError: this.$set is not a function |
Hi, this component is vue2 only sry |
hey, ohh okayy. is there any library you are aware of doing all these things like select and deselect all for vue 3, i tried vue multiselect and also tried their slots but cant get reactive buttons and the dropdown closes |
i didn t use any lib for vue3 atm sry |
I was trying to implement this in my Vue app and I was facing this error.
Vue Version: 3
code
`< vue-multi-select
<script> import vueMultiSelect from 'vue-multi-select'; import 'vue-multi-select/dist/lib/vue-multi-select.css'; export default { name: "FleetTab1", components: { vueMultiSelect }, data() { return { values1: [ { label: '2' }, { label: '3' }, ], data1: [{ title: 'part one', elements: [ { label: '0', disabled: true }, { label: '2' }, { label: '3' }, { label: '8' }, { label: '9' }, { label: '11' }, { label: '13' }, { label: '14' }, { label: '15' }, { label: '18' }, ], }, { title: 'part two', elements: [ { label: '23' }, { label: '25' }, { label: '31' }, { label: '42' }, { label: '56' }, { label: '76' }, { label: '82' }, { label: '42' }, { label: '13' }, { label: '21' }, ], }], options1: { multi: true, groups: true, labelName: 'label', labelList: 'elements', groupName: 'title', cssSelected: option => (option.selected ? { 'background-color': '#5764c6' } : ''), }, } } </script>`v-model="values1"
search
:options="options1"
:selectOptions="data1" />
The text was updated successfully, but these errors were encountered: