Skip to content

Menu not closing on multi with ValueContainer and controlled inputs #6068

@francestu96

Description

@francestu96

I need to display the number of selected fields on the select. I found the way to manage it by using the ValueContainer component. However, the menu does not close when clicking outside of it as it is supposed to do. I also don't want to close on select the option.

Look at the uploaded simple example
https://codesandbox.io/p/sandbox/react-select-v5-sandbox-forked-qtcjqm?file=%2Fexample.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-unconfirmedIssues that describe a bug that hasn't been confirmed by a maintainer yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions