ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
660 stars 164 forks source link

When using router.push to go to a different route (where there is a carousel component) everything about the carousel is broken #131

Closed LucianHij closed 1 year ago

LucianHij commented 2 years ago

Describe the bug Carousel is totally broken when using vue-router to navigate to a route that has vue-carousel used.

To Reproduce Steps to reproduce the behavior:

  1. Create 2 "pages"
  2. Navigate using vue-router from the first page to the second one
  3. The second page should have the vue-carousel component implemented
  4. Observe that the carousel is not working at all when changing routes

Expected behavior The carousel to work

lacorde commented 2 years ago

This issue is similar to #134. Would also like to know !

LucianHij commented 2 years ago

Still does not work

LucianHij commented 2 years ago

So, it works only on first mount. But if you are navigating by switching the pages again, the second time the carousel is dead. Also, the carousel is dead if you use v-show on it.

deStrO commented 2 years ago

I'm having the same behavior, when I navigate between pages, slider doesn't update properly (in nuxt3)

lacorde commented 2 years ago

I have the same behavior as @deStrO (also nuxt3)

jakobbusk commented 2 years ago

Can also confirm this bug / behavior (Nuxt3)

denisasJersovas commented 1 year ago

the issue is still there, any news about the fix maybe ?

ismail9k commented 1 year ago

Here is a working example with Nuxt@3.0.0