From 1e4a235587c32fcd4be5910917cc60a9743193c6 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 9 Mar 2023 05:44:37 -0500 Subject: [PATCH] fix(element): reset initialized flag on disconnectedCallback (#6474) --- src/element/swiper-element.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/element/swiper-element.js b/src/element/swiper-element.js index 51a172507..4623794a9 100644 --- a/src/element/swiper-element.js +++ b/src/element/swiper-element.js @@ -142,6 +142,7 @@ class SwiperContainer extends ClassToExtend { if (this.swiper && this.swiper.destroy) { this.swiper.destroy(); } + this.initialized = false; } updateSwiperOnPropChange(propName) {