Skip to content

Commit

Permalink
fix: fixed runCallbacksOnInit bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongsheng committed Feb 26, 2019
1 parent ff65753 commit a1038d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/core/update/updateActiveIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ export default function (newActiveIndex) {
if (previousRealIndex !== realIndex) {
swiper.emit('realIndexChange');
}
swiper.emit('slideChange');
// swiper.emit('slideChange');
!swiper.initialized && !swiper.runCallbacksOnInit ? false : swiper.emit('slideChange');
}

0 comments on commit a1038d5

Please sign in to comment.