You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Focusing on any element and pressing the left or right arrow keys will trigger pagination on the active Swiper.
Using the reproduction link as a reference, if i focus on the button and use the arrows, i see that the swiper below it starts changing slides accordingly.
The button and the swiper instance do not interact in any way and should not affect each other.
Expected Behavior
The swiper instance should be affected by the arrow keys only if the wrapper itself it focused, or a child nested within it.
Actual Behavior
Using the arrow buttons when focused on any element in the page makes the swiper instance scroll, too
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-keyboard-control-forked-jrtc5g?workspaceId=56cce242-c538-447d-8ae9-77dc817b70da
Bug description
Focusing on any element and pressing the left or right arrow keys will trigger pagination on the active Swiper.
Using the reproduction link as a reference, if i focus on the button and use the arrows, i see that the swiper below it starts changing slides accordingly.
The button and the swiper instance do not interact in any way and should not affect each other.
Expected Behavior
The swiper instance should be affected by the arrow keys only if the wrapper itself it focused, or a child nested within it.
Actual Behavior
Using the arrow buttons when focused on any element in the page makes the swiper instance scroll, too
Swiper version
v11.1.14
Platform/Target and Browser Versions
firefox 131.0.3, chrome 130
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: