@update:modelValue works again with oruga-ui 0.8.12

This commit is contained in:
Massedil 2024-07-01 19:55:02 +02:00
parent 745b4a82d1
commit 023f15938b
2 changed files with 2 additions and 14 deletions

View file

@ -34,7 +34,7 @@
"@apollo/client": "^3.3.16", "@apollo/client": "^3.3.16",
"@framasoft/socket": "^1.0.0", "@framasoft/socket": "^1.0.0",
"@framasoft/socket-apollo-link": "^1.0.0", "@framasoft/socket-apollo-link": "^1.0.0",
"@oruga-ui/oruga-next": "0.8.10", "@oruga-ui/oruga-next": "0.8.12",
"@oruga-ui/theme-oruga": "^0.2.0", "@oruga-ui/theme-oruga": "^0.2.0",
"@fullcalendar/core": "^6.1.10", "@fullcalendar/core": "^6.1.10",
"@fullcalendar/daygrid": "^6.1.10", "@fullcalendar/daygrid": "^6.1.10",

View file

@ -1,8 +1,7 @@
<template> <template>
<o-taginput <o-taginput
:modelValue="modelValueWithDisplayName" :modelValue="modelValueWithDisplayName"
@remove="remove" @update:modelValue="updateTags"
@add="add"
:data="availableActors" :data="availableActors"
:allow-autocomplete="true" :allow-autocomplete="true"
:allow-new="false" :allow-new="false"
@ -26,17 +25,6 @@ import { computed, ref } from "vue";
import ActorInline from "./ActorInline.vue"; import ActorInline from "./ActorInline.vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
// TODO It seems that '@update:modelValue="updateTags"' does not works anymore...
// so temporarily call the function updateTags() at remove and add tag event
// https://github.com/oruga-ui/oruga/issues/967
function remove() {
updateTags(modelValueWithDisplayName.value);
}
function add() {
updateTags(modelValueWithDisplayName.value);
}
const emit = defineEmits<{ const emit = defineEmits<{
"update:modelValue": [value: IActor[]]; "update:modelValue": [value: IActor[]];
}>(); }>();