Skip to content

Unable to close the dropdown after double selection #715

Open
@Uni2K

Description

@Uni2K

Describe the bug
When using a custom ItemRenderer, double selecting a single item will remove the capability to close the dropdown when clicking outside.

Sandbox / Git Repo
https://codesandbox.io/s/naughty-dewdney-wn7v74?file=/src/App.js

To Reproduce
Steps to reproduce the behavior:

  1. Check out the repo
  2. Select a single item
  3. Deselect the item
  4. click outside of the dropdown
  5. It won't close

Expected behavior
It closes when clicked outside

Screenshots
closing

Desktop (please complete the following information):

  • OS: Win 11
  • Chrome
  • Latest

Additional context
Maybe I use the Default Item renderer wrong, but there is no working example in the docs and this was the only thing I found in the soruce code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions