Replies: 2 comments
-
@erkage this works for me.
or in your case, the following should work...
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Just to jump on this issue, I have the same use case and was able to destroy it. Though when I try to recreate it doesn't work anymore. I try:
or simply
And I get this error: Any ideas?? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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