Skip to content

Commit

Permalink
fix autocomplete url params
Browse files Browse the repository at this point in the history
replaced ?&input with ?input, this should fix filtering by type #686
  • Loading branch information
Fedor Moiseev authored and bell-steven committed Mar 23, 2021
1 parent 01879cd commit 994affc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GooglePlacesAutocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 994affc

Please sign in to comment.