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

149
Vistas
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
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