Skip to content

Autocomplete behavior discrepancy between Esc and clickoutside #4275

Open
@kre64

Description

@kre64

Description

The Autocomplete button has different behaviors when deleting characters off of a selection and pressing Esc vs clicking out of the Autocomplete's focus.

I was expecting this to be the same, so that users deleting characters off the end of their selection will be forced to reselect from the dropdown. E.g; if I select “alligator”, and delete r, o -- I want “alligat” to remain, or for the value of the Autocomplete input to be erased.

cc @pksjce for helping me understand what's going on with the component!

Image alt="recording of autocomplete input bug"

Steps to reproduce

  1. Enter text into the Autocomplete component
  2. Select any option from the dropdown list
  3. Delete a few characters off the end
  4. Click outside and watch the input autocomplete to the previous selection
  5. Optional, repeat steps 1-3, but press Esc and observed desired behavior

Version

v35.32.2

Browser

Chrome

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions