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
"refresh" method deletes the slides when reinitialising the slider. #38
Comments
Weird! Can you post a code sample demonstrating this issue in action so we can troubleshoot it? |
Sure thing, here's a codepen: https://codepen.io/Mitchell-ionata/pen/QWvBEWg |
Thanks for putting that together! I can confirm that this is an issue that seems to be present in accessible-slick, but not the original Slick library. But I haven't been able to figure out the cause of it yet. There haven't been any changes made to either the So far I've found that the I'm also seeing that the $(".reslick").on("click", function() {
$(".my-slider").slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
dots: false,
centerMode: true,
});
}); If you, or anyone else, has any ideas for what could be going on here, please let me know! |
Thanks for looking into it! Yeah I just happened to stumble upon the I'll have a poke around myself if I find the time, cheers! |
FWIW, I've run into this issue as well. It looks like this could be related to an issue on slick.js where the refresh with filtering was removing the slides. That issue was resolve in 1.9.1. |
I'm experiencing the same issue. Using NPM i'm getting v1.81 latest. Just had a look at the git repo and it looks like the v1.9.0 was reverted - anyone have any idea how to fix this issue? |
It seems this issue is documented here: |
I'm responsively
unslick
ing my slider and with Slick v1.8.1 I was able to$('.my-slider').slick('refresh');
to reinitialise the slider, however with this fork, it does attempt to reinitialise the slider but all the slides are removed and the.slick-track
is completely empty.The text was updated successfully, but these errors were encountered: