Skip to content

Combobox not showing input value when using e defaultSelectedKey and autofocus #9389

@snowystinger

Description

@snowystinger

Discussed in #9387

Originally posted by francescosac95 December 22, 2025
Hey everyone,

I am using Combobox from react aria components and I am running into an issue (Uncontrolled component).
The issue is when I have the combobox on autofocus and I have a defaultSelected key, the input value is empty. When I blur out I can see the right input value for the default selected key.
When I remove the autofocus everything works as expected, on initial render I can see the default selected key with the right input value.
Am I missing something? Is this how it's supposed to be working or is it a bug?

Reproduction https://stackblitz.com/edit/j8e97chh?file=src%2FExample.tsx

Metadata

Metadata

Assignees

No one assigned

    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