Skip to content

[combobox] Value gets cleared when items change #3818

Description

@sarthakmalik0810

Bug report

Current behavior

I believe #3607 has caused a regression for a component I have built, but this should affect other people as well.

I have a Combobox where items are fed by an API. When you choose a value, and then search for something else, the value gets cleared (onValueChange is called with null) and onInputValueChange is called if the items do not contain selected value.

This will also fail, if you were coming back to editing a form after saving and refreshing and your data is fed by a paginated API, where your selected item might be on the last page. The value will be cleared because the selected item will not be present in items.

Screen.Recording.2026-01-22.at.1.21.14.AM.mov

This issue is not reproducible in v1.0.0.

I believe this is a valid use case and should be supported.

Expected behavior

The value should not be cleared.

Reproducible example

I have rebuilt this example from #2760

https://codesandbox.io/p/sandbox/gallant-meadow-x2r7d2

Base UI version

v1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: comboboxChanges related to the combobox component.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions