akiran / react-slick

React carousel component
http://react-slick.neostack.com/
MIT License
11.72k stars 2.1k forks source link

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

Open ilhamsa1 opened 3 years ago

ilhamsa1 commented 3 years ago

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

I got an error in the browser console

image

this is example code in the sandbox

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

shayna-ilya commented 3 years ago

i have same problem

ilyavf commented 2 years ago

Same problem - decimal value and the last dot is not set to active.

vishwajeet1 commented 9 months ago

@akiran please check the PR fix#2017