Skip to content

[useCombobox] item is selected when clicking outside menu with highlighted item #1010

@Silverwolf90

Description

@Silverwolf90
  • downshift version: 5.2.0
  • node version: 10.19.0
  • npm (or yarn) version: 6.13.4

What you did:

  1. Open menu via toggle button
  2. Move mouse outside of menu
  3. Use keyboard to highlight an item (ie: press down arrow)
  4. Click mouse (outside of menu)

What happened:

Highlighted item will get selected. I would expect that nothing would be selected and the menu would close (ie: similar to pressing ESC)

Reproduction repository:

https://codesandbox.io/s/usecombobox-usage-z1i9w

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions