From a7704526f9a865b5a1e479d2a03aabcb1f534321 Mon Sep 17 00:00:00 2001 From: lesion Date: Wed, 1 Jun 2022 14:07:55 +0200 Subject: [PATCH] refactoring where selection adding an event --- components/WhereInput.vue | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/components/WhereInput.vue b/components/WhereInput.vue index 66881481..45f35330 100644 --- a/components/WhereInput.vue +++ b/components/WhereInput.vue @@ -5,13 +5,13 @@ v-row :rules="[$validators.required('common.where')]" :label="$t('common.where')" :hint="$t('event.where_description')" - :search-input.sync="placeName" :prepend-icon='mdiMapMarker' - persistent-hint - :value="value.name" - :items="filteredPlaces" no-filter - item-text='name' + :value='value.name' + hide-no-data + @input.native='search' + persistent-hint + :items="places" @change='selectPlace') template(v-slot:item="{ item, attrs, on }") v-list-item(v-bind='attrs' v-on='on') @@ -32,24 +32,24 @@ v-row