diff --git a/GooglePlacesAutocomplete.js b/GooglePlacesAutocomplete.js index 8f87420..851b9a7 100644 --- a/GooglePlacesAutocomplete.js +++ b/GooglePlacesAutocomplete.js @@ -513,7 +513,7 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => { request.open( 'GET', - `${url}/place/autocomplete/json?&input=` + + `${url}/place/autocomplete/json?input=` + encodeURIComponent(text) + '&' + Qs.stringify(props.query),