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

263
Vistas
Disable click on <a> tag when drag and drop?

I have a carousel that contains tags that link to details of movie. However, if you drag the mouse to rotate the carousel, when you drop it will redirect. How to prevent this?

carousel

I using ReactJs and my code look like:

   <Link
        to={"/detailfilm/" + data._id + "/" + data.title}
        draggable="false"
      >
      ...
   </Link>
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Create a class something like disable and add it while dragging and remove it on drag end.

.disable {
  pointer-events: none;
}

about 4 years ago · Juan Pablo Isaza Denunciar

0

Good Juan, was it like that for you? I am doing something similar but when I drag when adding that class it does not let me continue dragging

about 4 years ago · Matias Moran Denunciar
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