SlickGoTo Event conflicts with SlidesToShow. and doesn't change the slide to specified index. basically without infinite and centerMode it has the issue. its possibly happening because its not able to find enough items on its side so it can change the current-slide in the first column of the row.
when running this, it won't change. possibly because they can't find another items after the last item and can't display the last item in first column in the row as slick does.
$('.test-carousel').slick('slickGoTo', 7)
solution could be something like this works but not yet implemented fully for responsive breakpoints slidesToShow
let totalItems = 8;
let slidesToShow = 4;
if (index >= totalItems - slidesToShow) {
index = index - (totalItems - slidesToShow) + 1;
$('.test-carousel').slick('slickGoTo', index)
return;
}
More Details
jQuery Latest v3.7.0
Slick 1.8.1, I believe the bug exists on 1.9.0 as well as seen on cdnjs
SlickGoTo Event conflicts with SlidesToShow. and doesn't change the slide to specified index. basically without
infinite
andcenterMode
it has the issue. its possibly happening because its not able to find enough items on its side so it can change the current-slide in the first column of the row.example: http://jsfiddle.net/w3ogkxph/
====================================================================
Steps to reproduce the problem
init carousel showing 4 item per row and in slideCount is 8 as seen above
when running this, it won't change. possibly because they can't find another items after the last item and can't display the last item in first column in the row as slick does.
solution could be something like this works but not yet implemented fully for responsive breakpoints
slidesToShow
More Details
jQuery Latest v3.7.0 Slick 1.8.1, I believe the bug exists on 1.9.0 as well as seen on cdnjs