kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.49k stars 5.89k forks source link

Nested sliders aren't initializing properly #4217

Open Fettabachi opened 1 year ago

Fettabachi commented 1 year ago

I've built an outer slider that contains 4 nested sliders, but the nested sliders aren't initializing properly. I've created a pen explaining the issue and showing the bug.

====================================================================

Here's the CodePen

====================================================================

Steps to reproduce the problem

  1. You will see the issue on page load and as you click through the inner slides using the outer sliders' Prev/Next buttons at the top of the page.

====================================================================

What is the expected behaviour?

All of the inner sliders should initialize on page load and should not be destroyed when progressing through the slides.

====================================================================

What is observed behaviour?

The inner sliders don't all initialize and are destroyed/initialized as you move through the slides.

====================================================================

More Details