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

132
Visualizações
Focus an element of a list (search result) while continue writing in an input

I have a custom searcher in my React js app, and I need to focus an element of the search results (so I can navigate with arrow keys) leaving the input focused as well so I can continue writing.

thanks

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I recommend you to simulate what you want. Add keydown event listeners to input. And then see what is pressed. If it is allowed symbol then add this symbol to inputs actual value. If it is arrow, then add a specific class to need search item (f.e. focused-search-item) and add little another style rules. And when you press enter then get the "focused" element and simulate click event on it

about 4 years ago · Juan Pablo Isaza Relatório
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