I'm currently working on an AngularJS application and have implemented this directive to enable Google Maps API places autocomplete in the input field below.
<div>
<input type="text" autocomplete="off" g-places-autocomplete class="" options="autocompleteOptions" ng-model="location">
</div>
Unfortunately, I've encountered a problem where the style of the input field is set to display: none;
, causing the autocomplete feature not to work correctly.
Manually changing the property to display: block;
resolves the issue, but I suspect there might be something missing in my implementation of the g-places-autocomplete
directive.
If anyone could provide some insight or assistance, it would be greatly appreciated. Thank you in advance!