Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: slick slider rendering slide item for Null values ! #2397

Open
redwanul10 opened this issue Sep 10, 2024 · 0 comments
Open

bug: slick slider rendering slide item for Null values ! #2397

redwanul10 opened this issue Sep 10, 2024 · 0 comments

Comments

@redwanul10
Copy link

redwanul10 commented Sep 10, 2024

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 redwanul10 changed the title Slick slider rendering slide item for Null values ! bug: slick slider rendering slide item for Null values ! Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant