Skip to content

Focus behavior of <Select /> component regarding autoFocus and excludeFromTabOrder does nothing #7221

@BRobin55

Description

@BRobin55

Provide a general summary of the issue here

The <Select /> component incorporates the props autoFocus and excludeFromTabOrder. Unfortunately the props do not work as described in the documentation.

Select documentation

🤔 Expected Behavior?

When setting the autoFocus prop to true the <Button />inside the <Select />component should be focused on initial render.

When the excludeFromTabOrder prop is being set to true for the <Select /> component, the <Button /> should not be focusable by tabbing.

😯 Current Behavior

By setting the autoFocus prop nothing changes for the focusable behavior.
By setting the excludeFromTabOrder prop nothing changes for the focusable behavior.

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

Sandbox

Version

3.18.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS 14.6.1 (23G93)

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions