'gmap-autocomplete Pick first result on Enter key in vue
<gmap-autocomplete :value="value"
@place_changed="setPlace"
></gmap-autocomplete>
This is how i am using gmap-autocomplete component, i want to make first location selected on enter click.
Solution 1:[1]
After reviewing the core files, we can simply pass select-first-on-enter prop to gmap-autocomplete to make first location select on enter.
:select-first-on-enter=true
Here is the updated component usage.
<gmap-autocomplete :value="value"
:select-first-on-enter="true"
@place_changed="setPlace"
></gmap-autocomplete>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | khatri rohan |
