akiran / akiran/react-slick

Add .slick-active class on slides that are visible

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

説明

When reaching the end of a finite slider with multiple slides, not all of them do get the `.slick-active` class.

Here's a little snapshot to describe the issue.

The slider is set up as following:
```
slidesToShow={4}
slidesToSroll={4}
infinite={false}
```

Initial - first 4 slides visible
```






```

After click on next arrow (actual behavoir) - last 4 slides visible
```







```

After click on next arrow (expeted behavoir) - last 4 slides visible
```







```

Is this an expected bahvoir? If not, I've a fix ready and I'm happy to file a pull request.

Best

Roland

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

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

評価

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

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

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