Skip to content

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

Closed
@Swiftwork

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

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