akiran / akiran/react-slick

Responsive settings not working in functional component

Aperta
#2,264 0 commenti 7 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
11.9k
Fork
2.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.