From d7c0ef70625a6306879611ea6f5a756b38c1f78e Mon Sep 17 00:00:00 2001 From: Vladimir Kharlampidi Date: Thu, 16 Mar 2023 13:38:39 +0300 Subject: [PATCH] fix(loop): fix loopFix for controlled swipers fixes #6491 --- 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 80d5fa90d..49134af3a 100644 --- a/src/core/loop/loopFix.js +++ b/src/core/loop/loopFix.js @@ -146,7 +146,7 @@ export default function loopFix({ }; if (Array.isArray(swiper.controller.control)) { swiper.controller.control.forEach((c) => { - if (c.params.loop) c.loopFix(loopParams); + if (!c.destroyed && c.params.loop) c.loopFix(loopParams); }); } else if ( swiper.controller.control instanceof swiper.constructor &&