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

initialSlide parameter doesn't work #7755

Open
5 of 6 tasks
mayhew3 opened this issue Oct 3, 2024 · 0 comments
Open
5 of 6 tasks

initialSlide parameter doesn't work #7755

mayhew3 opened this issue Oct 3, 2024 · 0 comments

Comments

@mayhew3
Copy link

mayhew3 commented Oct 3, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/sandbox/swiper-navigation-forked-5flyyg

Bug description

The initialSlide option works if it is an attribute in the HTML tag, but not if it is a JS option.

Expected Behavior

Expect the slides index to start at initialSlide.

Actual Behavior

It starts at the first slide, no matter what value is in there.

Swiper version

11.1.14

Platform/Target and Browser Versions

Windows 11

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant