Skip to content
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

Pagination bullets move to the left on route change (when the component is unmounted), when using vue-transition. #7316

Closed
5 of 6 tasks
michaelprys opened this issue Feb 14, 2024 · 1 comment
Labels

Comments

@michaelprys
Copy link

michaelprys commented Feb 14, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/vitejs-vite-c5x8vm?file=src%2FApp.vue,src%2Fmain.js

Bug description

Pagination bullets move to the left on route change (when the component is unmounted). I have a reproduction, didn't care about styling much, but it's enough to show the issue. Try switching between router-links on the nav panel and you'll notice the bug. You can only notice it when using vue-transition, because there is a delay and you are able to see it.

Expected Behavior

The pagination bullets should stay on their place.

Actual Behavior

Moves to the left. Looks like the styling for bullets and the active button disappear.

Swiper version

11.0.6

Platform/Target and Browser Versions

Windows, Edge

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

nolimits4web commented Mar 19, 2024

because swiper is get destroyed on unmount. use your custom logic to prevent/handle this or move to Swiper Element

Repository owner locked and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants