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 [Web component] with virtual=true shows wrong pagination if slidesPerView/slidesPerGroup is again updated with virtual=true #6947

Closed
5 of 6 tasks
sunilrathore24 opened this issue Aug 18, 2023 · 0 comments · May be fixed by abhishekbedi/framework7#1, Aarod23/nys-site#1, wierza/Team-project#148 or TaylorBundy/swiper#4

Comments

@sunilrathore24
Copy link

Check that this is really a bug

  • I confirm

Reproduction link

https://stackblitz.com/edit/swiper-angular-example-oaq5s7?file=src%2Fapp%2Fapp.component.ts

Bug description

  1. Initialize the swiper with virtual=true
  2. now pass changed options like slidesPerView and slidesPerGroup along with previous options (just click the change slides button)
  3. see that the pagination and number of slides have reduced when virtual=true is passed again with other changed options

Expected Behavior

Swiper should show the correct number of slides even if the same params are passed again

Actual Behavior

number of slides/ pagination is not correct if virtual=true passed again with changed slidesPerView and slidesPerGroup

Swiper version

9.4.1

Platform/Target and Browser Versions

Chrome is up to date Version 115.0.5790.110 (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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment