Skip to content

Commit

Permalink
fix(core): don't call update() on lazy loaded in css mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed May 15, 2023
1 parent e0f4ae4 commit efc294c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/events/onLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { processLazyPreloader } from '../../shared/process-lazy-preloader.js';
export default function onLoad(e) {
const swiper = this;
processLazyPreloader(swiper, e.target);
if (swiper.params.cssMode) return;
swiper.update();
}

0 comments on commit efc294c

Please sign in to comment.