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

Question: Using Multi Option for Drop Down #857

Closed
jayiconcmo opened this issue Mar 30, 2016 · 3 comments
Closed

Question: Using Multi Option for Drop Down #857

jayiconcmo opened this issue Mar 30, 2016 · 3 comments

Comments

@jayiconcmo
Copy link

I have a main component that is used on several drop downs throughout the system. Sometimes I want those drop downs to be multi select and other times I only want one selection. I tried to set the multi option to false on the calling components that only one selection is allowed. This did not work. I then tried undefined based on the documentation as the default value for this option. That didn't work either. Any ideas?

@MarkLeMerise
Copy link

@jayiconcmo, setting the multi option is the correct way to toggle single- versus multi-select. I am currently using it for both single- and multi-select dropdowns with react-select@1.0.0-beta11. Could you post some code or explain more specifically what is not working?

(FYI, in the future, I'd recommend posting usage questions and issues to Stack Overflow with the react-select tag).

@jayiconcmo
Copy link
Author

@MarkLeMerise - I was able to figure it out. :) I have each component that needs the multi-select set to true and the others I just don't put anything - defaults to false in those cases. I will post to SOverflow in the future and use that tag. We are using that React-Select a lot in our system. :) Good work.

@bladey
Copy link
Contributor

bladey commented May 27, 2020

Hello -

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

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our limited efforts to maintain the latest version.

If you feel this issue / pull request 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