From 035e79d6eb3e07d78824322bc6412df3d09cafbe Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Fri, 21 Apr 2023 16:19:02 +0300 Subject: [PATCH] fix(loop): update slides grids before loop fix when spv is "auto" fixes #6599 --- src/core/loop/loopFix.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/loop/loopFix.js b/src/core/loop/loopFix.js index 49134af3a..2fe226d11 100644 --- a/src/core/loop/loopFix.js +++ b/src/core/loop/loopFix.js @@ -90,6 +90,9 @@ export default function loopFix({ } swiper.recalcSlides(); + if (params.slidesPerView === 'auto') { + swiper.updateSlides(); + } if (params.watchSlidesProgress) { swiper.updateSlidesOffset(); }