MadimetjaShika / vuetify-google-autocomplete

A Vuetify ready Vue.js autosuggest component for the Google Places API.
https://madimetjashika.github.io/vuetify-google-autocomplete/
MIT License
97 stars 53 forks source link

Select first search result upon loss of focus #36

Open rwhu opened 6 years ago

rwhu commented 6 years ago

Is there a way to select the first search result by default upon loss of focus or the user hitting enter (without arrowing down)?

MadimetjaShika commented 6 years ago

Hi @rwhu, apologies for the deployed response. I'll look into adding this capability sometime towards the end of this week.

MadimetjaShika commented 6 years ago

Hi @rwhu,

My apologies for taking so long on this. I've done some research and i'm not too sure if this is a possibility with native html5, without Jquery and other such libraries.

Have you perhaps been able to achieve something like this with native HTML5 capabilities? If you can share something then perhaps we can leverage off that.

Also, i'm planning to migrate this library to make full of of the Vuetify dropdown list and not the current one you see. Perhaps once that's done, it might be easier to add logic to auto-select the first item on enter event or loss of focus.

gerardfollano commented 5 years ago

Is there anyway to grab the first result in the drop down yet, if nothing is selected upon loss of focus. Also is there an option to validate autofill addresses of a user? I tried disabling the autofill all together but it looks like this is not possible on google chrome...

0306 commented 4 years ago

Any news on this topic? Element v-autocomplete in Vuetify support property auto-select-first. Can you maybe also this implement?