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

Keyboard control paginate all swiper elements on the page #7790

Open
6 tasks done
levipadre opened this issue Nov 11, 2024 · 1 comment
Open
6 tasks done

Keyboard control paginate all swiper elements on the page #7790

levipadre opened this issue Nov 11, 2024 · 1 comment
Labels

Comments

@levipadre
Copy link

levipadre commented Nov 11, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/p/devbox/swiper-react-keyboard-control-forked-c6slpn

Bug description

When you have multiple swiper js elements and paginate with the keyboard, it controls all, even when I add custom classname and id.

Expected Behavior

It should be controlled separately.

Actual Behavior

No response

Swiper version

11.1.14

Platform/Target and Browser Versions

macOs Chrome 130.0.6723.117, windows 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
@DevFromSiberia
Copy link

DevFromSiberia commented Nov 16, 2024

If you use 2 instances without react, for example on native JS - you will have the same problem.

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