Relative Content

Tag Archive for google-maps-api-3google-places-apiplaceholder

Add placeholder text to NEW PlacesAutocompleteElement

The Google Places Autocomplete API used to just use an <input> as the search field. So you could just add <input placeholder=”Search”>. Now the docs tell you to append a <gmp-place-autocomplete> element to your HTML div via javascript instead. I can’t find a way to add the placeholder text now.