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

Transform a component in Autocomplete #125

Open
NathanAP opened this issue May 25, 2022 · 2 comments
Open

Transform a component in Autocomplete #125

NathanAP opened this issue May 25, 2022 · 2 comments

Comments

@NathanAP
Copy link

NathanAP commented May 25, 2022

First of all, thanks for your dedication, it is helping a lot!

Is your feature request related to a problem? Please describe.
I want to transform a text field in an autocomplete field. To add more context, I'm using Vuetify so I want my field to have all their style, props etc. Maybe I'm losing something here, but the best way to do that right now seems to be like the default approach to create an autocomplete field with Javascript:

onMounted(() => {
   new google.maps.places.Autocomplete(
      document.findElementById("my-text-field"),
      ...
   )
})

if thats the case, is there a way to access google.maps with script setup without adding <script> to index.html?

Describe the solution you'd like
Maybe we could make GMapAutocomplete receive childrens so we could use v-text-field inside? Or even a v-autocomplete?

Describe alternatives you've considered
Using google.maps in script setup is possible with <script> import, but if we it with vue-google-maps we get an alert that we're importing maps twice. Fixing this might be the best start to make us be able to use the default maps and vue-google-maps together.

@websitevirtuoso
Copy link

I created PR hope that it will be accepted soon
#158

@NathanAP
Copy link
Author

I created PR hope that it will be accepted soon #158

Thanks for your time with this! I really hope as well, we were in a discussion about this repo since it seems its not maintained anymore...

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

2 participants