react-carousel
react-carousel copied to clipboard
RTL Plugin Infinite doesn't work
Describe the bug
When the html element use dir="rtl" attribute, and we set the slider plugins with ['infinite', 'rtl'], the slider is blank. But when I remove the 'infinite' plugin, it works.
To Reproduce Steps to reproduce the behavior:
- Use
dir="rtl"on parent html element - Use plugins
['rtl'] - It works
- Then use plugins
['rtl', 'infinite'] - It doesn't work and the slider goes blank
Expected behavior It should work as what it is on left to right direction.
Environment
System:
OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
Memory: 2.05 GB / 5.65 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
Yarn: 1.22.17 - ~/.nvm/versions/node/v15.14.0/bin/yarn
npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
npmPackages:
@brainhubeu/react-carousel: ^2.0.4 => 2.0.4
- Desktop and Mobile
- Chrome