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

Effect only applies to the first slides transition by clicking navigation buttons, when virtual is enabled #7177

Closed
5 of 6 tasks
xiandew opened this issue Nov 10, 2023 · 1 comment
Labels

Comments

@xiandew
Copy link

xiandew commented Nov 10, 2023

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/swiper-react-effect-creative-forked-lt4zkk?file=/src/App.jsx

Bug description

When virtual is enabled, effect only applies to the first slides transition (from slide index 0 to 1, regardless of the initial slide) by clicking the navigation buttons - subsequent slides transitions do not have the effect applied. It works perfectly when virtual is disabled, or grabbing the slides instead of clicking the navigation buttons.

Expected Behavior

Effect should be applied to all the slides transitions by clicking the navigation buttons, when virtual is enabled.

Actual Behavior

Effect only applies for the first slides transition (from slide index 0 to 1, regardless of the initial slide) by clicking the navigation buttons, when virtual is enabled.

Swiper version

11.0.4

Platform/Target and Browser Versions

Chrome

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
@xiandew xiandew added the React label Nov 10, 2023
@xiandew xiandew changed the title Effect only applies for the first slides transition (from index 0 to 1), when virtual is enabled Effect only applies for the first slides transition (from index 0 to 1) by navigation, when virtual is enabled Nov 10, 2023
@xiandew xiandew changed the title Effect only applies for the first slides transition (from index 0 to 1) by navigation, when virtual is enabled Effect only applies to the first slides transition (from index 0 to 1) by navigation, when virtual is enabled Nov 10, 2023
@xiandew xiandew changed the title Effect only applies to the first slides transition (from index 0 to 1) by navigation, when virtual is enabled Effect only applies to the first slides transition by clicking navigation buttons, when virtual is enabled Nov 10, 2023
@nolimits4web
Copy link
Owner

Please, move to Swiper Element https://swiperjs.com/blog/using-swiper-element-in-react. Swiper React version just for basic compatability, it won't get any major fix and improvements

Repository owner locked and limited conversation to collaborators Nov 10, 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