Skip to content

Autocomplete.Input does not allow value to be set to empty string "" #1995

Description

@Swiftwork

Describe the bug
If the value is explicitly set to an empty string from the parent on the Autocomplete.Input it won't clear the text in the field.

To Reproduce
Line 149 in AutocompleteInput.tsx

Expected behavior
It should either allow empty strings or change the operation to be setInputValue(value || '').

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: 35.1.0

Smartphone (please complete the following information):

  • Device: All
  • OS: All
  • Browser: All
  • Version: 35.1.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions