React-select: Add a SelectAll function to the menuRenderer props

Created on 6 Jan 2018  路  3Comments  路  Source: JedWatson/react-select

The project I'm working on requires the ability to select all of the filtered results e.g. searching a list of people and want to select all the results with a particular last name.

I have a working patch and I am working on a pull request for this feature.

I tried adding a button to the options list in my custom renderer that when you click it, it would call selectValue on all the options passed in. needless to say, it was hacky and did not work, it only added the last item.

Inspired by: https://github.com/Aidurber/react-picky/

Most helpful comment

I think it's reasonable to add a configurable option to the react-select, such that if multi-selection is enabled, we can let users to select all the available options in the dropdown list. I will work on the PR to this feature.

All 3 comments

I think it's reasonable to add a configurable option to the react-select, such that if multi-selection is enabled, we can let users to select all the available options in the dropdown list. I will work on the PR to this feature.

@Chopinsky Good news!

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

steida picture steida  路  3Comments

AchinthaReemal picture AchinthaReemal  路  3Comments

brunocramos picture brunocramos  路  3Comments

pashap picture pashap  路  3Comments

mbonaci picture mbonaci  路  3Comments