akiran / akiran/react-slick

bug: slick slider rendering slide item for Null values !

Đang mở
#2,397 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
11.9k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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](https://codesandbox.io/p/sandbox/beautiful-voice-ykstt8?file=%2Fsrc%2FApp.tsx%3A132%2C53)

I also tried the same example using Owl carousel which is showing expected results.
### owl carousel implementation
[Own Carousel Demo](https://codesandbox.io/p/sandbox/nervous-pare-f6prvx)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.