Fix FullAddressAutoComplete in Event form

#43
This commit is contained in:
summersamara 2024-01-23 22:07:56 +01:00
parent 9028332b0d
commit 87a7738842

View file

@ -24,7 +24,11 @@
:required="isRequired" :required="isRequired"
v-model="queryTextWithDefault" v-model="queryTextWithDefault"
:placeholder="placeholderWithDefault" :placeholder="placeholderWithDefault"
:formatter="(elem: IAddress) => addressFullName(elem)" :formatter="
(elem?: IAddress) => {
if (elem) addressFullName(elem);
}
"
:debounce="debounceDelay" :debounce="debounceDelay"
@input="asyncData" @input="asyncData"
:icon="canShowLocateMeButton ? null : 'map-marker'" :icon="canShowLocateMeButton ? null : 'map-marker'"
@ -63,7 +67,7 @@
</template> </template>
</o-autocomplete> </o-autocomplete>
<o-button <o-button
:disabled="!queryTextWithDefault" :disabled="!selected"
@click="resetAddress" @click="resetAddress"
class="reset-area !h-auto" class="reset-area !h-auto"
icon-left="close" icon-left="close"
@ -501,9 +505,7 @@ const fieldErrors = computed(() => {
</script> </script>
<style lang="scss"> <style lang="scss">
.autocomplete { .autocomplete {
.dropdown-menu { z-index: 2000;
z-index: 2000;
}
.dropdown-item.is-disabled { .dropdown-item.is-disabled {
opacity: 1 !important; opacity: 1 !important;