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 shows slide 2 unexpetedly #5006

Closed
6 tasks done
PeterBenko opened this issue Sep 27, 2021 · 1 comment
Closed
6 tasks done

Swiper shows slide 2 unexpetedly #5006

PeterBenko opened this issue Sep 27, 2021 · 1 comment
Labels

Comments

@PeterBenko
Copy link
Contributor

PeterBenko commented Sep 27, 2021

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-infinite-loop-angular-forked-y85mt?file=/src/app/app.component.ts

Bug description

Under certain circumstances, slide no2 will be shown instead of the correct slide. This seems to be connected to the (now deprecated) [(index)] attribute.
This bug appears with the change from v7.0.5 -> v7.0.6

This looks like the offending line. I'm happy to do a PR but am not sure if the line can just be removed or if there's a greater context I'm missing

Expected Behavior

The slide at the given index should be displayed

Actual Behavior

Slide no2 is displayed

Swiper version

7.0.6

Platform/Target and Browser Versions

tested on iPadOS Safari 15 & Chrome Version 93.0.4577.82 (Official Build) (64-bit)

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
@nolimits4web
Copy link
Owner

Yeah, seems like that line came from local testing. PR to remove it is welcome 🙂

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