akiran / akiran/react-slick

Add .slick-active class on slides that are visible

未关闭
#764 15 条评论 18 个 reaction 已指派 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 摘要。