akiran/react-slick

slick-cloned slides visible if slidesToDisplay > slide count

Open

#1569 aperta il 11 giu 2019

Vedi su GitHub
 (4 commenti) (2 reazioni) (0 assegnatari)JavaScript (2109 fork)batch import
good first issue

Metriche repository

Star
 (11.386 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

In recent versions, if slidesToShow is set to a value greater than the number of slides, all of the slick-cloned slides will be visible.

To replicate: in the PlayGround (https://codesandbox.io/s/ppwkk5l6xx) update the settings:

var settings = {
      dots: true,
      slidesToShow: 5
    };

Version 0.21.0 does not behave this way. With version 0.21.0 if the slidesToShow is greater than the number of slides, it does not create the slick-cloned slides.

Guida contributor