From 994affc79256dc9e9af98d6f8d7e6cc40b67b781 Mon Sep 17 00:00:00 2001 From: Fedor Moiseev Date: Wed, 3 Feb 2021 10:23:15 +0100 Subject: [PATCH] fix autocomplete url params replaced ?&input with ?input, this should fix filtering by type #686 --- GooglePlacesAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),