react-spectrum icon indicating copy to clipboard operation
react-spectrum copied to clipboard

Focus on the first available (not disabled) option

Open Mariam4324 opened this issue 2 weeks ago โ€ข 4 comments

Provide a general summary of the feature here

We would like to have the ability for the component to automatically focus the first available (non-disabled) option.

๐Ÿค” Expected Behavior?

When the dropdown opens, focus should move to the first active (non-disabled) option.

๐Ÿ˜ฏ Current Behavior

When the dropdown opens, the focus is set on the first option even if it is disabled.

๐Ÿ’ Possible Solution

If the current focus target cannot receive focus (e.g., the first option is disabled), the component should automatically fall back to the first available (non-disabled) option.

๐Ÿ”ฆ Context

This behavior causes issues with keyboard navigation and reduces accessibility. Users are forced to manually navigate through disabled items, which goes against standard UX expectations for selectable lists. Fixing this would improve predictability and usability, especially for users relying on keyboard navigation or assistive technologies.

๐Ÿ’ป Examples

See the example

๐Ÿงข Your Company/Team

No response

๐Ÿ•ท Tracking Issue

No response

Mariam4324 avatar Nov 25 '25 10:11 Mariam4324