Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When click outside of the select, the select don't close #3657

Closed
berstanislaw opened this issue Jun 28, 2019 · 2 comments
Closed

When click outside of the select, the select don't close #3657

berstanislaw opened this issue Jun 28, 2019 · 2 comments

Comments

@berstanislaw
Copy link

When I select one option from an select that has isMulti prop the select don't close when i click outside him.

Here's an example of the code that I'm using
<Select value={value} isMulti={multi ? true : false} className="select" classNamePrefix="select" isDisabled={editable ? false : true} placeholder='Selecione um valor' noOptionsMessage={() => ('Sem mais opções')} isSearchable={search ? true : false} closeMenuOnSelect={multi ? false : true} isClearable={false} onMenuOpen={() => setVisible(true)} onMenuClose={() => setVisible(false)} />

@FullMoon04
Copy link

How about using menuIsOpen prop?

@bladey
Copy link
Contributor

bladey commented May 28, 2020

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.

If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.

However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants