Skip to content

Commit

Permalink
fix(core): fixed loop when using custom slideActiveClass (#6495)
Browse files Browse the repository at this point in the history
Fixed loop when using custom slideActiveClass
  • Loading branch information
icecart committed Mar 15, 2023
1 parent 1e4a235 commit 756ecdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/loop/loopFix.js
Expand Up @@ -49,7 +49,7 @@ export default function loopFix({

if (typeof activeSlideIndex === 'undefined') {
activeSlideIndex = swiper.getSlideIndex(
swiper.slides.filter((el) => el.classList.contains('swiper-slide-active'))[0],
swiper.slides.filter((el) => el.classList.contains(params.slideActiveClass))[0],
);
} else {
activeIndex = activeSlideIndex;
Expand Down

0 comments on commit 756ecdb

Please sign in to comment.