Open ChobotX opened 2 years ago
Can confirm the if (this.autoPlay)
expression is testing against an internal method (and not the prop) so is always truthy.
This is resulting in the initialSlide option randomly breaking.
Major bug, this one.
We forked lib and fixed this problem https://github.com/bitbuilderz/vue-carousel-improved
In our case, where we convert PNGs to WEBP images on the fly, vue-slick-slider fires
afterChange
event withcurrentSlide = 1
without any visible change. Propautoplay
is set tofalse
.After some investigation we found that this line https://github.com/gs-shop/vue-slick-carousel/blob/master/src/InnerSlider.vue#L91 should probably be
if (spec.autoplay)
instead ofif (this.autoPlay)