Switching our $emit('input' to $emit('update:value' to be in line with the new way v-model works

This commit is contained in:
Cody Jackson
2024-10-23 17:00:55 +02:00
committed by Francesco Torchia
parent 4208c5890c
commit 8282f4c7e9
29 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -92,7 +92,7 @@ export default {
confirmAdd() {
if (this.inputValue && !this.value.includes(this.inputValue)) {
this.tags.push(this.inputValue);
this.$emit('input', this.tags);
this.$emit('update:value', this.tags);
}
this.inputValue = '';
@@ -101,7 +101,7 @@ export default {
onRemoveTag(tag) {
this.tags = this.tags.filter(v => v !== tag);
this.$emit('input', this.tags);
this.$emit('update:value', this.tags);
},
}
};