akiran/react-slick

slick-cloned slides visible if slidesToDisplay > slide count

Open

#1.569 aberto em 11 de jun. de 2019

Ver no GitHub
 (4 comments) (2 reactions) (0 assignees)JavaScript (2.109 forks)batch import
good first issue

Métricas do repositório

Stars
 (11.386 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador