Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue')
-rw-r--r--app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue b/app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue
index 1a3220d8db9..970c24c6e87 100644
--- a/app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue
+++ b/app/assets/javascripts/vue_shared/components/entity_select/entity_select.vue
@@ -75,10 +75,13 @@ export default {
computed: {
selected: {
set(value) {
- this.$emit('input', value);
this.selectedValue = value;
this.selectedText =
value === null ? null : this.items.find((item) => item.value === value).text;
+ this.$emit('input', {
+ value: this.selectedValue,
+ text: this.selectedText,
+ });
},
get() {
return this.selectedValue;
@@ -161,7 +164,7 @@ export default {
},
onReset() {
this.selected = null;
- this.$emit('input', null);
+ this.$emit('input', {});
},
onBottomReached() {
this.fetchEntities(this.page + 1);