Open emp-sean opened 1 year ago
@emp-sean I got this working by doing the following:
Added ref="address"
to the vue-google-autocomplete
element
<vue-google-autocomplete id="editAddressStreet3" ref="address" v-model="props.editAddress.street" placeholder="Address line 1" v-on:placechanged="getAddressData"></vue-google-autocomplete>
declared the ref in my script setup:
let address = ref('')
called the clear function in my code:
address.value.clear()
Anyone able to shed some light on how to use the events with the composite API of Vue 3.
Needing to use the clear functionality.