akiran / akiran/react-slick

Dots state error when "SlideToshow" uses decimal value and infinite false.

未关闭
#2,017 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
11.9k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

描述

Hi react slick team, I have a problem where the last dots are not active when I slide to the last page, I use slidetoshow value 2.5 and infinite false.
I tried to fix it but no props can change dots state directly

![image](https://user-images.githubusercontent.com/33473051/114114556-48342900-990b-11eb-99cc-bebe0aee9ced.png)

I got an error in the browser console

![image](https://user-images.githubusercontent.com/33473051/114114667-803b6c00-990b-11eb-8c8e-af95ed3995d2.png)

this is example code in the sandbox

https://codesandbox.io/s/react-slick-playground-forked-5gz8s?file=/index.js

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。