We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6089f2b commit ed5ec66Copy full SHA for ed5ec66
src/components/VfbTags.ts
@@ -29,7 +29,7 @@ export default defineComponent({
29
newChecked.push(value)
30
this.$emit('update:modelValue', newChecked)
31
},
32
- removeTag(tag: string) {
+ removeTag(tag: any) {
33
const newChecked = (this.modelValue as string[]).filter((x: string) => x !== tag);
34
35
src/components/VfbTags.vue
@@ -10,10 +10,11 @@
10
>
11
</div>
12
<div class="vfb-group vfb-buttons" v-show="modelValue.length">
13
+ <!-- @vue-ignore -->
14
<button
- class="vfb-tag"
15
- v-for="(value) in modelValue" :key="value"
+ v-for="(value,i) in modelValue" :key="i"
16
@click="removeTag(value)"
17
+ class="vfb-tag"
18
19
<span> {{ value}} </span>
20
<span class="vfb-tag-x">x</span>
0 commit comments