gs-shop / vue-slick-carousel

🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay
https://gs-shop.github.io/vue-slick-carousel/
Other
810 stars 184 forks source link

NEED TO DOUBLE CLICK after navigation for href="" to work #167

Open julius-spudvilas opened 3 years ago

julius-spudvilas commented 3 years ago

Simple slider with A tags in it will require 2x click after slide action was made to actually navigate to the link.

https://jsfiddle.net/75b9Lvwd/2/

gibkigonzo commented 2 years ago

you can do something like this

            if (this.$refs.carousel) {
                const slides = this.$refs.carousel.$children || []
                slides.forEach(slide => {
                    slide.clickable = true
                })
            }

here is fix for lib https://github.com/gs-shop/vue-slick-carousel/pull/240