akiran/react-slick

slick-cloned slides visible if slidesToDisplay > slide count

開放

#1,569 建立於 2019年6月11日

 (4 則留言) (2 個反應) (0 位負責人)JavaScript (2,075 個分叉)batch import
good first issue

倉庫指標

星標
 (11,921 顆星)
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.

貢獻者指南