diff --git a/src/components/slides/swiper/swiper.ts b/src/components/slides/swiper/swiper.ts index 21fc1f1499c..6af4c1084a6 100644 --- a/src/components/slides/swiper/swiper.ts +++ b/src/components/slides/swiper/swiper.ts @@ -891,6 +891,11 @@ export function enableTouchControl(s: Slides) { // Cleanup dynamic styles function cleanupStyles(s: Slides) { + if (!s.container || !s._wrapper) { + //fix #10830 + return; + } + // Container removeClass(s.container, s._classNames); s.container.removeAttribute('style');