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

[React] slideToClickedSlide and loop not working #5637

Closed
5 of 6 tasks
vicasas opened this issue Apr 17, 2022 · 3 comments
Closed
5 of 6 tasks

[React] slideToClickedSlide and loop not working #5637

vicasas opened this issue Apr 17, 2022 · 3 comments
Labels

Comments

@vicasas
Copy link

vicasas commented Apr 17, 2022

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/react-slidetoclickedslide-and-loop-not-working-l54wm8?file=/src/App.js

Bug description

activating slideToClickedSlide and loop breaks the loop. This can be seen when you click on the next slide and when you go back to position 0 no more slides appear.

Expected Behavior

I hope that by having both options activated, the feature of each one is fulfilled, being able to click on the slide that follows with the loop effect.

Actual Behavior

Nowadays clicking on the next slide and reaching position 0 breaks the loop effect.

Swiper version

8.1.0

Platform/Target and Browser Versions

macOs bigsur Chrome lastest

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
@vicasas vicasas added the React label Apr 17, 2022
@vicasas
Copy link
Author

vicasas commented Apr 19, 2022

closes in favor of #5642

@vicasas vicasas closed this as completed Apr 19, 2022
@vicasas vicasas reopened this Apr 19, 2022
@vicasas
Copy link
Author

vicasas commented Apr 19, 2022

same problem as in #5642 but now with slideToClickedSlide enabled and using the previous solution loopedSlides or loopAdditionalSlides

@nolimits4web
Copy link
Owner

Swiper v9 comes with fully reworked and now different loop functionality. If you have similar issues in Swiper 9, open a new issue with a CodeSandbox showing the issue.

Repository owner locked and limited conversation to collaborators Feb 1, 2023
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