akiran / akiran/react-slick

bug: RTL show

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

描述

### Describe
I think in RTL, from right to left, it's 123, not 312

### CodeSandbox
https://codesandbox.io/s/react-slick-playground-lk4i7?file=/index.js

https://github.com/akiran/react-slick/blob/80eb208cb7454cc63621f3bcf07a2b8c32999afa/src/track.js#L183
It may be fix in this place
```diff
--preCloneSlides.concat(slides, postCloneSlides).reverse();
++preCloneSlides.concat(slides.reverse(), postCloneSlides.reverse());
```

And `preCloneSlides` is not the last node, but the first node.

I hope this will be fix.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

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

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