akiran / akiran/react-slick

problem with responsive when mounting the component

Đang mở
#2,333 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When im in responsive mode this add a translate x value in slick-list and should be 0

```js
const settings = {
slidesToShow: 5,
slidesToScroll: 1,
speed: 500,
arrows: false,
infinite: false,
responsive: [
{
breakpoint: 1300,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
{
breakpoint: 1600,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
},
},
],
}
```

![image](https://github.com/akiran/react-slick/assets/67299584/1fb16025-efb0-4e8f-9a30-12f93e82138f)

only after touching next or prev does it look good
![image](https://github.com/akiran/react-slick/assets/67299584/b82bb3a3-17e1-4bac-9cbc-95f8e522c7e0)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.