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

[Bug]: Manual Tabs Not Working Correctly #17591

Closed
2 tasks done
RachelGHogan opened this issue Sep 26, 2024 · 0 comments · Fixed by #17831
Closed
2 tasks done

[Bug]: Manual Tabs Not Working Correctly #17591

RachelGHogan opened this issue Sep 26, 2024 · 0 comments · Fixed by #17831
Assignees

Comments

@RachelGHogan
Copy link

Package

@carbon/react

Browser

No response

Package version

1.66.0

React version

No response

Description

When using Tabs in manual mode, it appears that Carbon still stores the currently selected/rendered tab as the tab that last had focus. This means that if the last tab that was focused on is not the same as the tab that is currently selected/rendered, if you re-enter the menu and try to navigate with arrowkeys the focus indicator jumps around and does not behave as expected.

Reproduction/example

https://stackblitz.com/edit/github-xvaxt4-os3y2p?file=src%2FApp.jsx

Steps to reproduce

  1. Open the stackblitz from the reproduction link above
  2. Click/select one of the tabs. Do not exit the tab menu.
  3. Navigate to another tab button using the arrowkeys
  4. Enter the tab key to navigate off of the tabs selection menu
  5. Enter tab + shift to navigate back to the tabs selection menu
  6. Press either the right or left arrow key to see that it does not work as expected

Suggested Severity

None

Application/PAL

No response

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants