Skip to content

Autocomplete onValueChange not called when typing when empty, on mobile only #3079

@phelipetls

Description

@phelipetls

Bug report

Current behavior

It seems the Autocomplete callback prop onValueChange is not called when I start typing if the input is empty.

For example, if I reload the page and start typing, onValueChange does not get called even though the actual input value is changed. Same thing happens after clearing the input.

It gets triggered if I type " " (any non-alphanumeric character, such as "%" or ":").

I can reproduce this consistently with https://base-ui.com/react/components/autocomplete#async-search. Weirdly, it only happens on mobile.

See video below:

Screen_Recording_20251028_125910_Samsung.Internet.mp4

Expected behavior

After I clear the input, the onValueChange callback gets called once I start typing again.

Reproducible example

It happens with https://base-ui.com/react/components/autocomplete#async-search for me.

Base UI version

For example v1.0.2

Which browser are you using?

Firefox and Chromium-based web browsers (Samsung Internet).

Which OS are you using?

Android.

Which assistive tech are you using (if applicable)?

None.

Additional context

Provide any additional context that might help us identify the problem and find a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: autocompleteChanges related to the autocomplete component.has workaroundThere’s a bug, but users have a complete workaround, so no urgent fix or release is needed.status: waiting for authorIssue with insufficient information.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions