Skip to content

[Thumbs] Enter or space doesn't activate slide #4324

Open
@TimonVS

Description

@TimonVS
  • Swiper Version: 6.5.0
  • Platform/Target and Browser Versions: macOS, any browser (latest versions)

What You Did

Pressing enter or space when a thumbnail slide is focused doesn't activate the slide like it should, even when the slides themselves are button elements. A similar issue was posted almost a year ago on Stack Overflow: https://stackoverflow.com/questions/61110557/swiper-js-enter-button-doesnt-do-anything-on-the-thumbnail-for-accessibility.

Code example: https://codesandbox.io/s/swiper-thumbs-gallery-forked-229z5?file=/index.html

Expected Behavior

Pressing enter or space when a thumbnail slide is focused should activate the slide.

Actual Behavior

Nothing happens when enter or space is pressed when a thumbnail slide is focused.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions