kenwheeler / slick

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

unslick event removes slides from dom #4072

Open neahan opened 3 years ago

neahan commented 3 years ago

Using $([selector]).slick('unslick') removes the contents of [selector]. Issue happens with slick version 1.8.1 but not 1.7.1

a) version 1.8.1 - https://jsfiddle.net/neal_hanson/pLyofgu0/24/

b) version 1.7.1 - https://jsfiddle.net/neal_hanson/u9zc53n8/1/

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

Steps to reproduce the problem

  1. open fiddle
  2. resize results panel so width is less than 600px
  3. resize panel so width is greater than 600px

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

What is the expected behaviour?

Both should switch between a list of slide names

Screenshot 2021-03-16 193332

and a carousel.

Screenshot 2021-03-16 193356

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

What is observed behaviour?

a) Slides disappear when width < 600px, they do not reappear. b) Slider switches between list of slide names to a carousel.

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

More Details