Skip to content

Commit 756ecdb

Browse files
authored
fix(core): fixed loop when using custom slideActiveClass (#6495)
Fixed loop when using custom slideActiveClass
1 parent 1e4a235 commit 756ecdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/loop/loopFix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function loopFix({
4949

5050
if (typeof activeSlideIndex === 'undefined') {
5151
activeSlideIndex = swiper.getSlideIndex(
52-
swiper.slides.filter((el) => el.classList.contains('swiper-slide-active'))[0],
52+
swiper.slides.filter((el) => el.classList.contains(params.slideActiveClass))[0],
5353
);
5454
} else {
5555
activeIndex = activeSlideIndex;

0 commit comments

Comments
 (0)