akiran / react-slick

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

initialSlide is ignored on breakpoints #2372

Closed VMLuca closed 6 months ago

VMLuca commented 7 months ago

The initialSlide settings is ignored on breakpoints. It always takes the setting from outisde the breakponts defintion.

See my example for clarification. On smaller devices the slider should start with slide 2 instead of slide 1. It always takes slide 1 regardless the of the breakpoints settings.

https://codesandbox.io/p/sandbox/react-slick-playground-forked-hqfmn5?file=%2Findex.js%3A12%2C22

VMLuca commented 6 months ago

Duplicate of https://github.com/akiran/react-slick/issues/2027