react-slick icon indicating copy to clipboard operation
react-slick copied to clipboard

bug: slick slider rendering slide item for Null values !

Open redwanul10 opened this issue 1 year ago • 1 comments

Recently I'm using slick slider I noticed that if I return null from a component the slider is still showing slide item for the null value. let me share an example let's say i have 4 items in a list I'm returning null for the first 2 items so slider should show only 2 items since null is not a valid value/component but it's showing 4 items with 2 empty slides ! is this expected behaviour in slick slider ?

slick slider implementation

Slick Slider Demo

I also tried the same example using Owl carousel which is showing expected results.

owl carousel implementation

Own Carousel Demo

redwanul10 avatar Sep 10 '24 14:09 redwanul10

Having the same problem, even if there is no item or null react-slick slider component is adding an empty div for null values

Ezhil-Git avatar Aug 13 '25 10:08 Ezhil-Git