react-google-autocomplete
react-google-autocomplete copied to clipboard
Same input, different predictions on JSX vs TSX files
Hi,
I have two files that use the usePlacesService hook,
I use the same options on both:
const { placesService, placePredictions, getPlacePredictions } = usePlacesService({
apiKey: getMapsAPIKey(),
options: {
language: 'iw',
componentRestrictions: { country: 'isr' },
},
})`)
Getting predictions on input change:
<Autocomplete
onInputChange={(evt, newValue) => {
getPlacePredictions({ input: newValue });
Displaying the options:
options={placePredictions.map((place) => place.description)}
Input causing issue:
נתב
`Versions: Material (MUI) - 5.7.0 react-google-autocomplete - 2.6.1 react - 17.0.2
Sandbox - https://codesandbox.io/s/elated-jang-q5wjpp