Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda