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

257
Visualizações
Why does the background color returns to initial value while hovering on table row?

I have a table of ant design in react and I want to make table row background color changing when hovering on it. Actually I have done it by checking other answers but my problem is that the hover color is disappearing in like 1 second. I mean when I hover over the row, the background color is changing like 1 second but then returning to its normal color.

Here is the code:

return (
        <div className='card-holder'>
            <Card className='card-section'>
                <Table rowKey='id' dataSource={wallets} columns={columns} className='table'></Table>
            </Card>

And the css is:

.table {
    /*empty*/
}

.table tr:hover {
    background-color: yellow ;
}

Why is it returning back to original color in just 1 second ? I want to make the background color permanent as long as the mouse cursor stays on the row ?

about 4 years ago · Juan Pablo Isaza
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