Skip to content

Commit

Permalink
fix(loop): fix loopFix for controlled swipers
Browse files Browse the repository at this point in the history
fixes #6491
  • Loading branch information
nolimits4web committed Mar 16, 2023
1 parent 57d8eea commit d7c0ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/loop/loopFix.js
Expand Up @@ -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 &&
Expand Down

0 comments on commit d7c0ef7

Please sign in to comment.