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

183
Visualizações
React - Elements in a list incorrectly receive hover state when a sibling is removed as result of a touch event

I've logged a bug for this over in the React repo but it seems to have gone stale.

Essentially what I'm seeing is that if you render a list, e.g.:

return (
  <div>{items.map(item => <ItemDisplay key={item} item={item} />)}</div>
)

And then you tap an item to delete it, once that element has been removed from the DOM, its sibling receives a hover state.

I suspect what happens is that the actual element you want to remove isn't removed at all, but is just repurposed to display the other elements. So technically the element is still "hovered". But in reality it should be removed.

You can reproduce the example here by opening it with a touch device ( e.g. your phone ).

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Try using react-app-polyfill: "This package includes polyfills for various browsers. It includes minimum requirements and commonly used language features used by Create React App projects."

npm install react-app-polyfill

And this have to be the first line in src/index.js

import 'react-app-polyfill/stable';

I tried with firefox and chrome from my mobile and everything is working fine..

about 4 years ago · Santiago Gelvez 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