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

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