-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unslick not working as expected #2
Comments
Hi there @chinhphan099 - is this not the correct/expected result..? If you "unslick" - then do you not wish to destroy/unload the current carousel..? What is your expected behaviour..? |
I want after destroy slider. All HTML element have to back as before init slider. Because when the popup is shown again, I'd like to re-init the slider. |
I think you have 1 or two options.
|
👍 I can hot fix now. But it better if after unslick, all element still not remove as begin, like Slick Slider (jquery version) |
I reinitialize because when I init I have an option of initialSlide, I don't want to use "slickGoTo" |
@chinhphan099 - Please can you share an example again..? |
Hey @ubergeoff , I updated some codes in my repository. In this commit: chinhphan099/chinhphan099.github.io@8f5a51c
demo: https://chinhphan099.github.io/slick-vanilla/index.html |
@ubergeoff hey! amazing work with this
but args slick, currentSlide, nextSlide are empty. |
@ubergeoff
https://i.gyazo.com/1d024c67db83cc0f130e5abe2ccd0c3d.mp4
I ran unslick function and all slide item are removed :)
The text was updated successfully, but these errors were encountered: