Answer the question
In order to leave comments, you need to log in
Why is the slick slider not disabled at high resolutions?
Here is the js code
//table slider
$('#js-table').slick({
responsive: [
{
breakpoint: 1920,
settings: {
unslick: true
}
},
{
breakpoint: 660,
settings: {
arrows: false,
dots: true,
}
}
]
});
Answer the question
In order to leave comments, you need to log in
I had the same problem, here is the solution that worked for me
$(window).on('load resize', function () {
var withWindow = window.innerWidth;
if (withWindow > 660.98) {
$('#js-table').slick('unslick');
}
});
That's how it works.
//table slider
$('#js-table').slick({
dots: true,
arrows: false,
responsive: [{
breakpoint: 1980,
settings: "unslick" // destroys slick,
},
{
breakpoint: 660,
settings: {
dots: true
},
}
]
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question