fix multipleTagsSelect options
This commit is contained in:
@@ -10,10 +10,10 @@
|
|||||||
variant="outline-secondary" class="d-block rounded-0"
|
variant="outline-secondary" class="d-block rounded-0"
|
||||||
>
|
>
|
||||||
<b-dropdown-item-button
|
<b-dropdown-item-button
|
||||||
v-for="option in availableOptions" :key="option"
|
v-for="tag in availableOptions" :key="tag.value"
|
||||||
@click="addTag(option)"
|
@click="addTag(tag.text)"
|
||||||
>
|
>
|
||||||
{{ option }}
|
{{ tag.text }}
|
||||||
</b-dropdown-item-button>
|
</b-dropdown-item-button>
|
||||||
</b-dropdown>
|
</b-dropdown>
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
availableOptions () {
|
availableOptions () {
|
||||||
return this.options.filter(opt => this.value.indexOf(opt) === -1)
|
return this.options.filter(opt => this.value.indexOf(opt.text) === -1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user