-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Accessibility issue: Focusing on input forces slider to jump #5962
Comments
I have also encountered this problem so hopefully this will be fixed soon, because now we are forced to use an old version of swiper in our project. |
to workaround disable accessibility (if you don't need accessibility feature) by adding |
I have a solution that mobile touch on ui elements like links or select fields no longer makes the slide jump to first place. Touch events also trigger a focus event. I added a condition to check that the focus event was not triggered by touch. |
The more appropriate workaround if you don't want to completely disable all accessibility options is to set the
|
Check that this is really a bug
Reproduction link
https://codesandbox.io/embed/swiper-slides-per-view-forked-n8pht9?fontsize=14&hidenavigation=1&theme=dark
Bug description
Hello,
everything works just great in 99% of scenarios, although I found an odd bug that causes the slider to roughly jump once the input field gets focused - it doesn't even swipe, it simply instantly jumps to another section.
Expected Behavior
When input/textarea gets focused, swiper should stay.
Actual Behavior
When input/textarea gets focused, swiper jumps oddly (it doesn't even swipe).
Swiper version
8.3.2
Platform/Target and Browser Versions
All
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: