From 3ce049739b1878f60514ed918bd7dcf6fe018a0b Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 7 May 2024 15:46:37 -0300 Subject: [PATCH] Fixes taginput selected behaviour for User and Relationsip inputs. --- .../relationship/TainacanRelationship.vue | 5 +++- .../metadata-types/user/TainacanUser.vue | 26 +++++++++---------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue b/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue index c3d1da6c8..d9a1d5b05 100644 --- a/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue +++ b/src/views/admin/components/metadata-types/relationship/TainacanRelationship.vue @@ -11,7 +11,7 @@ :disabled="disabled" size="is-small" icon="magnify" - :model-value="selected" + :model-value="JSON.parse(JSON.stringify(selected))" :data="options" :maxtags="maxtags != undefined ? maxtags : (itemMetadatum.metadatum.multiple == 'yes' || allowNew === true ? (maxMultipleValues !== undefined ? maxMultipleValues : null) : '1')" autocomplete @@ -51,6 +51,9 @@
+