Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

RTL Plugin Infinite doesn't work #736

@ibnujakaria

Description

@ibnujakaria

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:

  1. Use dir="rtl" on parent html element
  2. Use plugins ['rtl']
  3. It works
  4. Then use plugins ['rtl', 'infinite']
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions