react-google-autocomplete icon indicating copy to clipboard operation
react-google-autocomplete copied to clipboard

Same input, different predictions on JSX vs TSX files

Open adrian19hub opened this issue 3 years ago • 0 comments

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

adrian19hub avatar Jul 28 '22 07:07 adrian19hub