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

237
Visualizações
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 Respostas
Responde à pergunta

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