akiran / akiran/react-slick

Responsive settings not working in functional component

Đang mở
#2,264 0 bình luận 7 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ả

I'm using these settings in a functional component:
```
const sliderSettings: Settings = {
dots: false,
infinite: true,
slidesToScroll: 1,
draggable: true,

responsive: [
{
breakpoint: 1080,
settings: {
slidesToShow: 1,
},
},
{
breakpoint: 1480,
settings: {
slidesToShow: 2,
},
},
{
breakpoint: 1800,
settings: {
slidesToShow: 3,
},
},
],
};
```

This is not working, however when changing my component to a class-based one, it does seem to work

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.