fawmi / vue-google-maps

Reactive Vue 3 components for Google maps
https://vue-map.netlify.app
MIT License
197 stars 103 forks source link

Allow Text Injection For The Autocomplete Component #182

Open Hussein-miracle opened 1 year ago

Hussein-miracle commented 1 year ago

Is your feature request related to a problem? Please describe. I'm trying to an input with autocomplete feature but if the user already selected an address they shouldn't have to input it again,so normally i'd just set the default value but it's not allowing that,tried manipulating the Dom and it just doesn't work

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

KostyaSafonov commented 1 year ago

Use the "value" property. It works for me.

As a workaround you can also use "placeholder" property and set "&:placeholder" text-color to black when the place string is not empty. But again regular "value" property works just fine.

m-kiruba commented 4 months ago

Even adding value is not working for me. I am trying to set the initial value of the autocomplete component.