fix place reselection

This commit is contained in:
lesion
2022-10-13 12:28:02 +02:00
parent bdc2ff335f
commit 40b1356d90

View File

@@ -7,11 +7,11 @@ v-row
:hint="$t('event.where_description')" :hint="$t('event.where_description')"
:prepend-icon='mdiMapMarker' :prepend-icon='mdiMapMarker'
no-filter no-filter
:value='value.name'
hide-no-data hide-no-data
@input.native='search' @input.native='search'
persistent-hint persistent-hint
:items="places" :items="places"
item-text='name'
@focus='search' @focus='search'
@change='selectPlace') @change='selectPlace')
template(v-slot:item="{ item, attrs, on }") template(v-slot:item="{ item, attrs, on }")
@@ -99,6 +99,7 @@ export default {
this.disableAddress = true this.disableAddress = true
} else { } else {
delete this.place.id delete this.place.id
this.place.name = tmpPlace
this.place.address = '' this.place.address = ''
this.disableAddress = false this.disableAddress = false
this.$refs.place.blur() this.$refs.place.blur()