Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

263
Views
Material UI Autocomplete options are not rendered

I'm using Material UI v4 Autocomplete component to build a React Js app.

I'm using the controlled Autocomplete component combined with the use-places-autocomplete library to show the place suggestions.

The is no user input at the first condition. So there is no suggestion from the Autocomplete component as seen in the image below.

enter image description here

If the user inputs a place name such as "new york", there will be some suggestions shown in the Autocomplete component and there are some suggestions in the browser console as seen in the screenshot below.

enter image description here

If the user inputs a specific name such as "jmto" (a company name), there will be no suggestion shown in the Autocomplete component but there are some suggestions in the browser console as seen in the screenshot below.

enter image description here

But the example from the use-places-autocomplete library here https://codesandbox.io/s/useplacesautocomplete-x-reach-ui-lik2c shows that a name like "jmto" would produce suggestions as seen in the image below.

enter image description here

So what's wrong with my code (why some names like "jmto" wouldn't show suggestions for the Autocomplete component)?

Here is the full code: https://codesandbox.io/s/autocomplete-material-ui-huvy7

Note: in order to run the codesandbox above, please provide your Google Maps API key.

You can obtain it here https://developers.google.com/maps/documentation/places/web-service/get-api-key

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!