akiran / akiran/react-slick

slickNext/slickPrev not working as expected

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

説明

The `slickPrev()` and `slickNext()` functions do not behave as expected if `initialSlide` is set to something other than `0`, and `infinite` is `false`. This behavior is only seen the first time the 👈 or 👉 button is pressed (i.e. after a page refresh).

With an `initialSlide` of `2`, the buttons behave as follows:
- Previous - Goes to slide 0
- Next - Goes to slide 1

Note: `goTo()` still works as expected

[CodeSandbox example](https://codesandbox.io/s/react-slick-bug-31r8d2)

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

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

評価

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

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

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