olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
505 stars 258 forks source link

Vue-google-autocomplete does not invoke in child component #178

Open rktaxali opened 2 years ago

rktaxali commented 2 years ago

I use Vue-google-autocomplete within a vue parent component, and it works great. Within the parent component, I have several child components, which open in a modal window. When I use Vue-google-autocomplete in a child component (I do use import VueGoogleAutocomplete from "vue-google-autocomplete"; in the child component like this:

<vue-google-autocomplete ref="autoCompleteAddressHousing" id="mapHousing" classname="form-control" placeholder="Please type your address" v-on:placechanged="getAddressDataHousing" country="ca" > </vue-google-autocomplete> It displays a text box to enter address, but Google does not display addresses matching the entered characters. However, when the same code is used in the parent component, it works. Any idea, why does not work in the child component when it works in the parent component.