akiran / akiran/react-slick

Slider Jumps Back To First Slide After State Change

Aperta
#2,023 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.