Merge remote-tracking branch 'origin/main'

This commit is contained in:
778a69cd 2024-07-16 13:39:25 +02:00
commit da8c7b281e

View file

@ -15,8 +15,7 @@
</template>
<o-taginput
:modelValue="tagsStrings"
@remove="remove"
@add="add"
@update:modelValue="updateTags"
:data="filteredTags"
:allow-autocomplete="true"
:allow-new="true"
@ -94,17 +93,6 @@ const filteredTags = computed((): ITag[] => {
);
});
// 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(tagsStrings.value);
}
function add() {
updateTags(tagsStrings.value);
}
const updateTags = (newTagsStrings: string[]) => {
const tagEntities = newTagsStrings.map((tag: string | ITag) => {
if (typeof tag !== "string") {