React-select: Add multi-select limiter

Created on 7 May 2015  路  6Comments  路  Source: JedWatson/react-select

Adding a custom limiter would enable developers the ability check what is currently selected, and do things like:

  • artificially limit the number of options a user can select (https://github.com/JedWatson/react-select/issues/148) based on their own logic, or
  • Enforce minimum number of options

You could do this through a limited prop, which stops the user from selecting more options, but they can still be clearable and not disabled

That way this functionality should be easy enough to add for any level of control.

Most helpful comment

Is anyone working on this atm?

All 6 comments

Is anyone working on this atm?

yes please. up?

These features are all possible AFAIK through https://github.com/JedWatson/react-select#multiselect-options

I know this issues is close, but limited the selector with the prop limited is not working for me. Also here in the documentation (https://github.com/JedWatson/react-select#multiselect-options) I did not see the limited prop. What I'm doing wrong.

@JeanOsorio open a new issue with an example of your problem?

Is there a min limit in react-select? Like user can select more than 3 options meaning he/she cannot delete/clear/remove options so that the count of options selected goes beneath 3.

Also similarly is there a maximum limit.
Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MindRave picture MindRave  路  3Comments

pashap picture pashap  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

x-yuri picture x-yuri  路  3Comments

pgoldweic picture pgoldweic  路  3Comments