akiran / akiran/react-slick

RTL Direction Not Working Properly

未關閉
#2,391 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
11.9k
分支
2.1k
PR 合併指標
30 天內沒有已合併 PR

描述

CodeSandbox link [Issue Link](https://codesandbox.io/p/sandbox/gallant-wozniak-zw5xl9?file=%2Fsrc%2FApp.js)

In the provided CodeSandbox link, when switching the direction from LTR (left-to-right) to RTL (right-to-left), the current slide in the slider changes from 0 to the last slide. Specifically:

- For LTR, the slider functions correctly, starting from slide 0 and progressing to the last slide.
- For RTL, the slider starts from the last slide and moves towards slide 0.

**Steps to Reproduce:**

- Set the slider direction to LTR and observe the behavior.
- Switch the direction to RTL and observe that the slider starts from the last slide and moves towards slide 0.

**Expected Behavior:**

- The slider should maintain consistent behavior regardless of direction:

For both LTR and RTL, the slider should start from slide 0 and move to the last slide.

**Current Behavior:**

- In RTL mode, the slider behaves inversely, starting from the last slide.

Thank you for looking into this issue!
Sathyaraj

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。