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

Swiper is destroyed if using intialSlide=1 or anything other than 0. #7288

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

Comments

@shapebuster
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

f

Bug description

If I set the initialSlide to 1 instead of 0, as soon as I try to retrieve my swiper object, it says "destroyed; true" on the object. It works perfectly for if the initial slide is set to 0.

Any ideas?

Expected Behavior

swiper object is not destroyed

Actual Behavior

No response

Swiper version

11

Platform/Target and Browser Versions

mobile browser

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