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

152
Views
Input change event listener doesn't work till i trigger another event in chrome extension?

I am facing a strange behaviour in my chrome extension, i have a search input that filter a list of data showed in the extension, and the search input is binded with change listener that should trigger a function that filters the list any time the input changed.

const searchInput = document.getElementById('search-list');


searchInput.addEventListener('change', searchList);

function searchList(e) {
  let showingData;
  showingData= data.filter(item=> 
    item.name.toLowerCase().search(e.target.value.toLowerCase()) !== -1);
  renderList(showingData);
}

This should work correctly once changing the input, but this works only after clicking anywhere in the body of the extension or clicking Enter button in the keyboard, the function searchList is not triggered after changing the input which is a strange behaviour, what can be the reason for that??

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!