akiran/react-slick

slick-cloned slides visible if slidesToDisplay > slide count

Open

#1,569 创建于 2019年6月11日

在 GitHub 查看
 (4 评论) (2 反应) (0 负责人)JavaScript (2,109 fork)batch import
good first issue

仓库指标

Star
 (11,386 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南