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

130
Views
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 answers
Answer question

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 Report
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!