akiran / akiran/react-slick

Slider Jumps Back To First Slide After State Change

オープン
#2,023 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。