-
Notifications
You must be signed in to change notification settings - Fork 53
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
Component fails to list results after route change #26
Comments
I am having the same issue. When loading directly it works. With route change it fails. |
Hey guys,
Thanks for pointing this out. I’ll only get a chance to have a look at this
sometime this coming weekend if not early next week. If any of you guys are
keen on checking it out, you’re welcome to create a PR and I’ll merge it in.
…On Wed, 28 Feb 2018 at 08:25, ewwwgiddings ***@***.***> wrote:
I am having the same issue. When loading directly it works. With route
change it fails.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGVeLU2ItYwuRi_tuJfP2rklVVEh4czIks5tZPFkgaJpZM4SSluF>
.
|
Doesn't need to be a route change. I've got the component in a wizard step and if I go back (not using history) it also stops working. I've run a few tests on the events in the component and they all seem to be responding. I'm wondering if this is actually an issue with Google's code. I've had a similar issue with the Google Maps SDK in the past. Looking into it. |
I adjusted my code to use a v-show instead of v-if for the blocks I was showing/hiding for the wizard and that did the trick. My guess right now is that "googeMapState.initMap" does not get re-triggered and so setupGoogle() does not run |
Would be interested to hear if this fixes the issue for route changes, as well. |
Hi @timothynott Thanks for the PR, much appreciated! I've merged it in, i'm going to publish a new version just now and will let you know once done. |
I've published the fix under alpha version @mwargan and @ewwwgiddings, please let me know if this resolves the route change issue that you had. |
When I load the site on localhost then first thing navigate to the autocomplete's page it does not work. When I load the site and then go to the autocomplete's page indirectly it does work now. So yes it works better now, and I think it is something with my code that is causing that buggy situation, not with this. I will be looking into why probably some time this week. If I find it to be something other than my code I will let you know. Otherwise, thank you! |
Looks like I'm still running into the issue. As mentioned above, it does work better, so a big thumbs up for your continual efforts 👍! Interestingly, I've noticed that v6 works when routes change as long as the router is saved under a |
Cool thanks guys. I'll look into this sometime this weekend and let you know when resolved. |
Any update on this one? The component works great otherwise, but this one issue is preventing us from using this in production. |
Submitted another PR tested against route changes with vue-router. |
@timothynott thanks so much for the PR! I've merged and published new version I've tested this with route changes and it seems to be working okay now. Thanks again @timothynott! |
Happy to help |
Good stuff, thanks guys. Confirming that this resolves the issue on route change for me. |
Closing this issue as resolved. Feel free to re-open if still experiencing the same problem. |
Just stumble about this issue still present in 2.0.0-beta.4: On first load all is fine, after route changing the result list stays empty. PR #31 seems to be not enough. Here is my code (of a component using vga, reduced to relevant parts) including a hack to execute <template>
<vuetify-google-autocomplete
id="map"
ref="myAddress"
>
</vuetify-google-autocomplete>
</template>
<script>
export default {
data: () => ({
myAddress: ''
}),
mounted() {
// Hack, see https://github.com/MadimetjaShika/vuetify-google-autocomplete/issues/26
if (window.hasOwnProperty('google') && window.google.hasOwnProperty('maps')) {
this.$refs.myAddress.setupGoogle();
}
},
}
</script> With the hack in Versions used:
|
Hey :P!
It looks like the component is failing to show results after a route change - see https://github.com/mwargan/vuetify-google-autocomplete-simple-example (added a router)
Nothing in the console - gets me thinking if there's any better debugging tool for Vue I could acquire.
Let me know if I can provide more info!
The text was updated successfully, but these errors were encountered: