Skip to content

[Autocomplete] freeSolo value is not remaining after leaving the field #28098

@daniel-7235

Description

@daniel-7235

When using the Autocomplete component with the freeSolo option, the entered value is removed right after leaving the text field.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

See the image below (Material-UI v5.0.0-beta.4)
autocomplete-freeSolo-5 0 0-beta 4

Expected Behavior 🤔

See the image below (Material-UI v4.12.3)
autocomplete-freeSolo-4 12 3

The Autocomplete component should not remove the entered text.

Steps to Reproduce 🕹

Steps:

  1. Visit https://next.material-ui.com/components/autocomplete/#free-solo
  2. Enter a text
  3. Leave the input field
  4. BUG: Text is removed

Your Environment 🌎

  • MacOS
  • Chrome 92.0.4515.159

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: importantThis change can make a difference.ready to takeHelp wanted. Guidance available. There is a high chance the change will be acceptedscope: autocompleteChanges related to the autocomplete. This includes ComboBox.type: regressionA bug, but worse, it used to behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions