Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

this.$set is not a function #81

@umang-gramener

Description

@umang-gramener

I was trying to implement this in my Vue app and I was facing this error.

Vue Version: 3

code

`< vue-multi-select
v-model="values1"
search
:options="options1"
:selectOptions="data1" />

<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>`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions