Skip to content

Commit 0d97cec

Browse files
authored
fix: Moves placeholder to HTML (#1030)
1 parent a43889f commit 0d97cec

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

samples/place-autocomplete-map/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<div
2222
class="place-autocomplete-card"
2323
slot="control-inline-start-block-start">
24-
<gmp-place-autocomplete></gmp-place-autocomplete>
24+
<gmp-place-autocomplete placeholder="Search for a place..."></gmp-place-autocomplete>
2525
</div>
2626
</gmp-map>
2727
<!-- [END maps_place_autocomplete_map_add]-->

samples/place-autocomplete-map/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ async function initMap(): Promise<void> {
2626
mapTypeControl: false,
2727
});
2828

29-
//@ts-ignore
30-
placeAutocomplete.placeholder = 'Search for a place...';
31-
3229
// Use the bounds_changed event to restrict results to the current map bounds.
3330
google.maps.event.addListener(innerMap, 'bounds_changed', async () => {
3431
placeAutocomplete.locationRestriction = innerMap.getBounds();

0 commit comments

Comments
 (0)