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 FaridSafi#686
  • Loading branch information
Fedor Moiseev committed Feb 3, 2021
1 parent 6bd6513 commit 1642dc5
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 @@ -509,7 +509,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 1642dc5

Please sign in to comment.