Skip to content

Cannot clear selection once value is selected. #177

@casperOne

Description

@casperOne
  • downshift version: 1.4.0
  • node version: N/A
  • npm (or yarn) version: N/A

Reproduction repository:

https://olrv026pz6.codesandbox.io/

Problem description:

Using the example from the Usage page:

  • Place the focus on the input element
  • Type "app"; the drop down list will show a single element, "apple"
  • Click the drop down item, or press Enter to select the "apple" item
  • Highlight "apple" in the input field.

At this point, I would expect that hitting Backspace to clear the selection and then using the mouse, hitting Enter, or pressing Tab to leave the input field would clear the value.

However, at this point, the field populates itself with "apple".

My expectation is that the selection would be cleared out given one of those actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions