You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the WebComponent version for a Vue project and like to handle window resizing to enable Swiper just on mobile.
When I try to destory it with swiperRef.value.destroy() I'm getting swiperRef.value.destroy is not a function.
If there's no destroy how I can achieve that if the window size is bigger than a number it seems like Swiper never got initialized? And I mean not just on load but dynamically on resize.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey,
I'm using the WebComponent version for a Vue project and like to handle window resizing to enable Swiper just on mobile.
When I try to destory it with
swiperRef.value.destroy()
I'm gettingswiperRef.value.destroy is not a function
.If there's no destroy how I can achieve that if the window size is bigger than a number it seems like Swiper never got initialized? And I mean not just on load but dynamically on resize.
I initialize Swiper with this:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions