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

Incorrect slide displayed with slideTo #7296

Closed
5 of 6 tasks
es-ki opened this issue Feb 5, 2024 · 1 comment
Closed
5 of 6 tasks

Incorrect slide displayed with slideTo #7296

es-ki opened this issue Feb 5, 2024 · 1 comment
Labels

Comments

@es-ki
Copy link

es-ki commented Feb 5, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/devbox/56rls4

Bug description

Pressing a slide thumbnail, I would like to display a slider with the slide corresponding to the thumbnail active.
However, as shown in the video below, the expected slide is not displayed.

a.mp4

The active slide changes depending on the order in which the thumbnails are pressed and the number of times the slide is executed.

Expected Behavior

When a thumbnail is clicked, the slider should display the corresponding slide as the active slide.

For example:

If thumbnail C is clicked, the slider should display slide C as the active slide.
After closing the dialog after swiping through multiple slides on the displayed slider, if thumbnail B is clicked, the slider should display slide B as the active slide.

Actual Behavior

Depending on the order in which the thumbnails are pressed and the number of times the slides are executed, the active slide in the slider that appears when the dialog is opened will change.

Swiper version

11.0.5

Platform/Target and Browser Versions

Windows 10

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
@es-ki es-ki added the React label Feb 5, 2024
@nolimits4web
Copy link
Owner

Check the slideToLoop method instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants