From 756ecdbd3e510a29d298f40a167cbdeb26d72508 Mon Sep 17 00:00:00 2001 From: Ruslan <40831934+flytestb@users.noreply.github.com> Date: Wed, 15 Mar 2023 16:41:52 +0100 Subject: [PATCH] fix(core): fixed loop when using custom `slideActiveClass` (#6495) Fixed loop when using custom slideActiveClass --- src/core/loop/loopFix.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/loop/loopFix.js b/src/core/loop/loopFix.js index 2d30139cf..80d5fa90d 100644 --- a/src/core/loop/loopFix.js +++ b/src/core/loop/loopFix.js @@ -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;