-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
No transitions on first slide while using navigation buttons when destroy and reinit the carousel #672
Comments
Related |
@sadeghbarati thank you for your bug report. Try this and see if you can reproduce the problem? |
It's working fine now 🙏 What was the problem |
@sadeghbarati you'll see the code changes when I create the PR. I will release a patch release with the bug fix as soon as possible. It will be |
Just one thing before the publish Isn't better to use |
@sadeghbarati yeah maybe that’s better? I’m not a seasoned Vue dev. Most of my experience is with React. Why is it better? And why is the current approach working as expected? |
Both are working well, only just to separate the embla destroying process from Vue reactivity cleanup |
@sadeghbarati feel free to try it out in the latest StackBlitz fork I shared and submit a PR with the onBeforeUnmount hook instead of onUnmounted. Best, |
Thank You ❤️🔥 |
@sadeghbarati so you will create a PR 🙂? |
Sure thing! But It was easy to contribute if I was pnpm and pnpm workspaces (Adding Vue in playground directory) 😁 |
Sry it took too long I was trying to figure out the yarn and creating playground for Vue and also Should I have to include npmjs - export { EmblaOptionsType, EmblaEventType, EmblaPluginType, EmblaCarouselType } from 'embla-carousel/index.ts';
export { EmblaCarouselVueType } from './components/emblaCarouselVue.ts';
export { default } from './components/emblaCarouselVue.ts'; local build - export { EmblaCarouselVueType } from './components/emblaCarouselVue.ts';
export { default } from './components/emblaCarouselVue.ts'; |
@sadeghbarati thanks for the PR 👍🏻! The build files differ because of this upcoming change which I haven’t released yet. I think the playground should be a separate PR just to separate things. You can check out the vanilla and react playgrounds to see how the styles are imported from the documentation website examples. You don’t need to add your own that way. And I would recommend you to setup a Vite playground just like the vanilla and react to make it easier for devs to jump between the playgrounds when testing things. Thanks for your efforts! |
Ok will create new PR for playground later after the new release Thanks for the opportunity ❤️ |
@sadeghbarati a bug fix for this was just released in |
Bug is related to
Embla Carousel version
v8.0.0-rc17
Describe the bug
No transition occurs on first slide on hitting
next
button when destroy and reinit the Embla CarouselCodeSandbox / StackBlitz
https://stackblitz.com/edit/vitejs-vite-k4menh?file=src%2Fcomponents%2FCarousel.vue
Steps to reproduce
Destroy/Reinit Carousel
next
buttonExpected behavior
slide should have normal transitions
Additional context
None
The text was updated successfully, but these errors were encountered: