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

238
Vistas
Hover work when i turn on devtools but dont work when i turn off devtools?

when i hover to image when devtools not turn on, it dont working but when i open when devtools and hover again. It finally work ?? I have been trying in difference browser but the same problem is happened, everyone help me solved this. It was happened when i used setTimeout and clearTimeout in difference function, it would be nice if you can help solved this or idea of write code in difference ways.

const handleHover = () => {
    //set time out here
    setHandleDelay(setTimeout(() => {
    setHover(true)
    }, 1000 ))
}
const handleNotHover = () => {
    //i want to clear time out here when it not hover
    clearTimeout(handleDelay)
    setHover(false)                    
}
return (
         <div key={movie.id} 
         onMouseOver={() => handleHover()} 
         onmouseover{() => handleNotHover()}>
         <div>...</div>
       )
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Thank for everyone i have already fine the solution. It is stupid of me for mistake at event onMouseOver and onMouseEnter.

It was better to use onMouseEnter and onMouseLeave when you hover on element in Reactjs

<div
onMouseEnter={() => handleHover()} 
onMouseLeave={() => handleNotHover()} />
about 4 years ago · Juan Pablo Isaza Denunciar
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