diff --git a/src/react/update-swiper.js b/src/react/update-swiper.js index 3dfafa282..1b8c84ef2 100644 --- a/src/react/update-swiper.js +++ b/src/react/update-swiper.js @@ -8,6 +8,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { let needPaginationInit; let needScrollbarInit; let needNavigationInit; + if ( changedParams.includes('thumbs') && passedParams.thumbs && @@ -30,7 +31,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { changedParams.includes('pagination') && passedParams.pagination && passedParams.pagination.el && - currentParams.pagination && + (currentParams.pagination || currentParams.pagination === false) && pagination && !pagination.el ) { @@ -41,7 +42,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { changedParams.includes('scrollbar') && passedParams.scrollbar && passedParams.scrollbar.el && - currentParams.scrollbar && + (currentParams.scrollbar || currentParams.scrollbar === false) && scrollbar && !scrollbar.el ) { @@ -53,7 +54,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { passedParams.navigation && passedParams.navigation.prevEl && passedParams.navigation.nextEl && - currentParams.navigation && + (currentParams.navigation || currentParams.navigation === false) && navigation && !navigation.prevEl && !navigation.nextEl diff --git a/src/svelte/update-swiper.js b/src/svelte/update-swiper.js index 2042c0e1b..4b2ee8273 100644 --- a/src/svelte/update-swiper.js +++ b/src/svelte/update-swiper.js @@ -30,7 +30,7 @@ function updateSwiper(swiper, passedParams, changedParams) { changedParams.includes('pagination') && passedParams.pagination && passedParams.pagination.el && - currentParams.pagination && + (currentParams.pagination || currentParams.pagination === false) && pagination && !pagination.el ) { @@ -41,7 +41,7 @@ function updateSwiper(swiper, passedParams, changedParams) { changedParams.includes('scrollbar') && passedParams.scrollbar && passedParams.scrollbar.el && - currentParams.scrollbar && + (currentParams.scrollbar || currentParams.scrollbar === false) && scrollbar && !scrollbar.el ) { @@ -53,7 +53,7 @@ function updateSwiper(swiper, passedParams, changedParams) { passedParams.navigation && passedParams.navigation.prevEl && passedParams.navigation.nextEl && - currentParams.navigation && + (currentParams.navigation || currentParams.navigation === false) && navigation && !navigation.prevEl && !navigation.nextEl diff --git a/src/vue/update-swiper.js b/src/vue/update-swiper.js index 3dfafa282..43afebd58 100644 --- a/src/vue/update-swiper.js +++ b/src/vue/update-swiper.js @@ -30,7 +30,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { changedParams.includes('pagination') && passedParams.pagination && passedParams.pagination.el && - currentParams.pagination && + (currentParams.pagination || currentParams.pagination === false) && pagination && !pagination.el ) { @@ -41,7 +41,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { changedParams.includes('scrollbar') && passedParams.scrollbar && passedParams.scrollbar.el && - currentParams.scrollbar && + (currentParams.scrollbar || currentParams.scrollbar === false) && scrollbar && !scrollbar.el ) { @@ -53,7 +53,7 @@ function updateSwiper(swiper, slides, passedParams, changedParams) { passedParams.navigation && passedParams.navigation.prevEl && passedParams.navigation.nextEl && - currentParams.navigation && + (currentParams.navigation || currentParams.navigation === false) && navigation && !navigation.prevEl && !navigation.nextEl