diff --git a/src/views/admin/js/event-bus-item-metadata.js b/src/views/admin/js/event-bus-item-metadata.js index 6a9b920df..b06c015f1 100644 --- a/src/views/admin/js/event-bus-item-metadata.js +++ b/src/views/admin/js/event-bus-item-metadata.js @@ -73,7 +73,7 @@ export const eventBusItemMetadata = new Vue({ if (values.length > 0 && values[0] != undefined && values[0].value) { let onlyValues = values.map((aValueObject) => aValueObject.value); - values = onlyValues; + values = JSON.parse(JSON.stringify(onlyValues)); } this.$store.dispatch('item/updateItemSubmissionMetadatum', { diff --git a/src/views/admin/scss/_dropdown-and-autocomplete.scss b/src/views/admin/scss/_dropdown-and-autocomplete.scss index 604236ddb..b8ef3aac0 100644 --- a/src/views/admin/scss/_dropdown-and-autocomplete.scss +++ b/src/views/admin/scss/_dropdown-and-autocomplete.scss @@ -130,9 +130,6 @@ margin-bottom: 0px !important; text-overflow: ellipsis; background-color: var(--tainacan-input-background-color); - &:hover { - border: none !important; - } } .input.has-selected, .input:focus, .input:active { background-color: var(--tainacan-input-background-color); diff --git a/src/views/admin/scss/tainacan-admin.scss b/src/views/admin/scss/tainacan-admin.scss index 50c3d243d..2d4f88782 100644 --- a/src/views/admin/scss/tainacan-admin.scss +++ b/src/views/admin/scss/tainacan-admin.scss @@ -251,6 +251,9 @@ a:hover { } } } +.taginput-container .input:hover { + border: none !important; +} // Buefy notices (toast, snackbar...) .notices { diff --git a/src/views/item-submission/pages/item-submission-form.vue b/src/views/item-submission/pages/item-submission-form.vue index 5ed0c0d91..ee36576bf 100644 --- a/src/views/item-submission/pages/item-submission-form.vue +++ b/src/views/item-submission/pages/item-submission-form.vue @@ -581,7 +581,7 @@ export default { // Clear errors so we don't have them duplicated from api eventBusItemMetadata.errors = []; - let data = this.form; + let data = JSON.parse(JSON.stringify(this.form)); this.fillExtraFormData(data); this.setItemSubmission(data);