kenwheeler / slick

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

Slick Slides Appending Previous Slides #2673

Open GetzPro opened 7 years ago

GetzPro commented 7 years ago

I have multiple slicks on a real estate page. I click on feature image to reveal a list of additional photos. I click on one of those photos and I get the popup slideshow. I then click on another feature image, then on a photo within that strip and the popup slideshow starts with the previous properties images.

So the slideshow is not clearing from the previous. I think it is not unslicking at the a.fn.slick = function() found at 1311 in min.js.

Please advise if you can.

Thank you!

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

ljudbane commented 7 years ago

I had a similar problem where i got previous slides after clearing html and calling unslick. It turned out that the problem was that i called unslick after clearing html and adding new slides. Unslick would add previous slides back to the DOM. The solution was to first call unslick and then change html elements.