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

slideChangeTransitionStart calls when initialSlide is greater than 0 #7290

Closed
5 of 6 tasks
shapebuster opened this issue Feb 1, 2024 · 1 comment
Closed
5 of 6 tasks

Comments

@shapebuster
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

d

Bug description

Not sure why but slideChangeTransitionStart calls for some reason if initialSlide is > 0. It does not call if initialSlide is 0. This has caused my program to break a fair bit when migrating to this library as for some reason the swiper object is destroyed when this event initially occurs.

Flow is: initial slide>0 -> create swiper object success -> slideChangeTransitionStart calls -> swiper object is destroyed

Expected Behavior

I expect this event not to take place and for the swiper object to not be destroyed

Actual Behavior

No response

Swiper version

11

Platform/Target and Browser Versions

ionic mobile

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
Copy link

github-actions bot commented Feb 1, 2024

Hello @shapebuster. Please provide a online reproduction by codesandbox or a minimal GitHub repository. You can fork one of our demos in codesandbox to get start. Issues labeled by missing demo will be closed if no activities in 3 days.

@github-actions github-actions bot closed this as completed Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants