Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rktaxali opened this issue Aug 8, 2022 · 0 comments
Open

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

rktaxali opened this issue Aug 8, 2022 · 0 comments

Comments

@rktaxali
Copy link

rktaxali commented Aug 8, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant