mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-21 23:44:30 +00:00
@update:modelValue works again with oruga-ui 0.8.12
This commit is contained in:
parent
745b4a82d1
commit
023f15938b
2 changed files with 2 additions and 14 deletions
|
@ -34,7 +34,7 @@
|
|||
"@apollo/client": "^3.3.16",
|
||||
"@framasoft/socket": "^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",
|
||||
"@fullcalendar/core": "^6.1.10",
|
||||
"@fullcalendar/daygrid": "^6.1.10",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
<template>
|
||||
<o-taginput
|
||||
:modelValue="modelValueWithDisplayName"
|
||||
@remove="remove"
|
||||
@add="add"
|
||||
@update:modelValue="updateTags"
|
||||
:data="availableActors"
|
||||
:allow-autocomplete="true"
|
||||
:allow-new="false"
|
||||
|
@ -26,17 +25,6 @@ import { computed, ref } from "vue";
|
|||
import ActorInline from "./ActorInline.vue";
|
||||
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<{
|
||||
"update:modelValue": [value: IActor[]];
|
||||
}>();
|
||||
|
|
Loading…
Reference in a new issue