Skip to content

Autocomplete input stops updating when no matches are found #8856

@jabrks

Description

@jabrks

Provide a general summary of the issue here

When using the Autocomplete component, if you enter a search term that yields zero results, the input freezes and stops receiving updates. The only way to reset the input is to use the clear button.

🤔 Expected Behavior?

The input should continue to allow the search term to be adjusted, even when there are no results found.

😯 Current Behavior

The input value stops updating unless you use the clear button to reset it.

💁 Possible Solution

Possibly related to the large-scale refactor in #8641.

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/devbox/elegant-jerry-vytxg4?workspaceId=ws_2dzWdrKVkq8NN5ECL3BfB6

  1. Open the page
  2. Enter a term into the search field that returns no results
  3. Try to make further edits to the search field

Version

react-aria-components 1.12.1

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

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