Skip to content

[BUG] Virtual slider not rendering if initialSlide={1} #7699

Closed
@Profesor08

Description

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/devbox/swiper-react-virtual-slides-forked-z5jks2

Bug description

If you use virtual slides and want manage initialSlide by some logic, slides will not render if initialSlide becomes equal to 1

Expected Behavior

Slides to render

Actual Behavior

Slides not rendering

image

Swiper version

11.1.10

Platform/Target and Browser Versions

Windows 11, Chrome latest

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

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions