Skip to content

Tab navigation not working on disabled elements with tabIndex=0 #399

Open
@dmytrokirpa

Description

@dmytrokirpa

Background:

There is an issue in the Fluent UI repository concerning tab navigation beyond disabled elements and a PR with attempt to fix it. And it appears to be related to Tabster's handling of tab navigation for disabled elements with tabindex="0".

Steps to reproduce:

  1. Visit https://codesandbox.io/p/sandbox/epic-easley-v2n9kf?file=%2Fsrc%2FApp.tsx%3A16%2C42
  2. Use the tab key to navigate between buttons

Expected result:

Tab navigation should bypass all disabled elements.

Actual result:

Tab navigation halts after encountering disabled elements with tabindex="0".

Screen.Recording.2024-08-14.at.12.40.44.mov

Note: While removing tabindex="0" from disabled elements is a workaround, the question remains whether Tabster should inherently support such cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions