Skip to content

[Bug]: react-tabster - findAllFocusable method always returning ALL elements inside the target #25413

@marcosmoura

Description

@marcosmoura

Library

React Components / v9 (@fluentui/react-components)

System Info

-

Are you reporting Accessibility issue?

no

Reproduction

https://codesandbox.io/

Bug Description

Actual Behavior

The findAllFocusable method needs an acceptCondition function that, when provided, will return all the elements inside the container (not only the focusable ones).
image

On the Tabster library, the acceptCondition function is optional, but the react-tabster wrapper has a required param. Changing it to optional, might fix the problem.

Another alternative would be changing the second parameter to a FindAllProps type, so we could decide which props to pass to Tabster.

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions