Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

265
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda