akiran / react-slick

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

set "rtl" and "infinite" both will cause problems #1339

Open jianghr-rr opened 6 years ago

jianghr-rr commented 6 years ago

set rtl: true and set infinite:true will cause the "slick-active" wrong, the real active dom is the prev one. the function "beforeChange" can not get oldIndex, oldIndex is undefined

a-m-dev commented 6 years ago

rtl of this pkg truly is a big mess

a-m-dev commented 6 years ago

it really does not works properly

Belzee10 commented 5 years ago

Totally agree, try to set rtl: true and lazyLoad: onDemand, it just doesn't work.

aviranmz commented 5 years ago

I have two slider on the same page: const settings = { infinite: false, speed: 300, slidesToShow: 4, slidesToScroll: 1, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll: 3, infinite: true, dots: true } }, { breakpoint: 650, settings: { slidesToShow: 4, slidesToScroll: 1, vertical: true } } ] }; but the second one alwasy keep adding in dir="ltr" is it possible to remove the ltr from the render ReactSwitch. Am using ^0.23.2