akiran / akiran/react-slick

Slider Jumps Back To First Slide After State Change

Abierto
#2,023 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
11.9k
Forks
2.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I'm having an issue with slide when selecting a div inside the slider.

The divs have an onClick function which changes the state of the current selected div with useState hook. This causes the slider to jump back to the first slide. Is there any way to fix this behavior?

Note: It does do the selection.

Screen Shot 2021-04-22 at 11 46 52

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.