Skip to content

[select] Placeholder value visible despite setting defaultValue or value in Select #2199

Open
@amal-biju

Description

@amal-biju

Bug report

Current behavior

When using the Base UI Select component, the placeholder text is still visible even though a defaultValue or value is already set. On initial render, the placeholder remains visible until the trigger is clicked, at which point it updates to display the selected value. This creates a confusing experience for users.

Expected behavior

The selected value (either via defaultValue or value) should be visible on initial render. The placeholder should only be shown if no value is selected.

Base UI version

1.0.0-beta.0

Which browser are you using?

Chrome

Which OS are you using?

Windows 11

Additional context

Tested with both controlled and uncontrolled versions of the Select component. In both cases, placeholder rendering seems to override the intended selected value until user interaction occurs.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions