akiran / akiran/react-slick

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

Open
#2,017 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.