Open munibahina opened 3 years ago
This should work
<PlacesAutocomplete
searchOptions={{
componentRestrictions: {
country: 'US'
}
}}
/>
@munibahina They have already provided a workaround for this. You can check this closed issue
This should work
<PlacesAutocomplete searchOptions={{ componentRestrictions: { country: 'US' } }} />
@munibahina This should solve the issue, i would encourage you to close the issue.
Do you want to request a feature or report a bug?
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
What is the expected behavior?
Which versions of ReactPlacesAutocomplete, and which browser / OS are affected by this issue?