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

112
Visualizações
How to target a not Found Element with react-scroll library?

import { scroller } from "react-scroll";

I have a component DataView which conditionally renders in another component RenderData which renders the data as cards. There are 3 sections in RenderData which is operated by a menu ... and it renders according to a property in DataView.

Now I use scroller.scrollTo(id, {smooth: true, duration: 500, spy: true, exact: true, offset: -79,}) through a button to scroll to any card specified with the id

But in the console Target Element not found is output.

Is there a reason why this is happening? I've heard it's because of 2 scrollbars, but I can't see 2 scrollbars (is there a way to possibly show them)? If not, is there any other way to smooth scroll to id? Thanks

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