swiper
swiper copied to clipboard
initialSlide parameter doesn't work
Check that this is really a bug
- [X] 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
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- [X] 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