Splidejs / vue-splide

The Splide component for Vue.
MIT License
324 stars 76 forks source link

Click on slide to change route breaks slider #88

Open leogenot opened 1 year ago

leogenot commented 1 year ago

Checks

Version

0.6.12

Description

On Nuxt 3.4, having Nuxt-link as slide breaks slider when going to the new route, here we see the Dom gets completely changed (I slowed down the transition btw pages to see what was going on) as if the slider ref or options where reset on route change. it seems like the slider is being destroyed before the component gets unmounted

https://github.com/Splidejs/vue-splide/assets/45610291/50f5b4f6-59bc-4813-abdd-b14b6205336b

Reproduction Link

No response

Steps to Reproduce

1.Have a slide with Nuxt-link 2. ...

Expected Behaviour

slider should stay the same before being unmounted