diff --git a/src/components/Form/FormFields/Select2.vue b/src/components/Form/FormFields/Select2.vue index 6c70163c5..ac63cad7b 100644 --- a/src/components/Form/FormFields/Select2.vue +++ b/src/components/Form/FormFields/Select2.vue @@ -12,6 +12,7 @@ :options="iOptions" :remote="remote" :remote-method="filterOptions" + :class="transformed ? 'hidden-tag' : 'show-tag'" class="select2" popper-append-to-body @change="onChange" @@ -134,7 +135,8 @@ export default { iOptions: this.options || [], initialOptions: [], remote: true, - allSelected: false + allSelected: false, + transformed: true } }, computed: { @@ -295,6 +297,10 @@ export default { validateStatus }) data = processResults.bind(this)(data) + setTimeout(() => { + this.transformed = false + }, 100) + data.results.forEach((v) => { this.initialOptions.push(v) if (this.optionsValues.indexOf(v.value) === -1) { @@ -409,18 +415,31 @@ export default { -