Description
Component
Carousel
Package version
9.58.3
React version
17.0.1
Environment
System:
OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
CPU: (16) x64 AMD EPYC 7763 64-Core Processor
Memory: 57.74 GB / 62.79 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Browsers:
Chrome: 135.0.7049.52
Current Behavior
Keyboard focus loss in Carousel when there are only 2 CarouselCard. See video below
Fluent_carousel_bug.mp4
Expected Behavior
The keyboard focus will not lose and will focus on the previous button
Reproduction
https://stackblitz.com/edit/efrqonjj?file=src%2Fexample.tsx
Steps to reproduce
- Click 'tab' by keyboard to focus on Next button
- Click 'enter'
- The focus is loss
Are you reporting an Accessibility issue?
yes
Suggested severity
Urgent - No workaround and Products/sites are affected
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.