Skip to content

Commit fa017bb

Browse files
authored
Merge pull request #267 from arfanliaqat/patch-1
docs(places): fix comments for onLoad, onUnmount
2 parents 94b88dd + d386b71 commit fa017bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-google-maps-api/src/components/places/Autocomplete.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ export interface AutocompleteProps {
5858
types?: string[];
5959
/** This event is fired when a PlaceResult is made available for a Place the user has selected. If the user enters the name of a Place that was not suggested by the control and presses the Enter key, or if a Place Details request fails, the PlaceResult contains the user input in the name property, with no other properties defined. */
6060
onPlaceChanged?: () => void;
61-
/** This callback is called when the component unmounts. It is called with the autocomplete instance. */
62-
onLoad?: (autocomplete: google.maps.places.Autocomplete) => void;
6361
/** This callback is called when the autocomplete instance has loaded. It is called with the autocomplete instance. */
62+
onLoad?: (autocomplete: google.maps.places.Autocomplete) => void;
63+
/** This callback is called when the component unmounts. It is called with the autocomplete instance. */
6464
onUnmount?: (autocomplete: google.maps.places.Autocomplete) => void;
6565
}
6666

0 commit comments

Comments
 (0)