react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Add multi-select limiter

Open dcousens opened this issue 11 years ago • 6 comments

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.

dcousens avatar May 07 '15 04:05 dcousens

Is anyone working on this atm?

codeorelse avatar Aug 31 '15 07:08 codeorelse

yes please. up?

kfajardo-agsx avatar Sep 27 '16 06:09 kfajardo-agsx

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

dcousens avatar Jan 03 '17 01:01 dcousens

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 avatar Jan 19 '17 08:01 JeanOsorio

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

dcousens avatar Jan 20 '17 01:01 dcousens

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.

rohitkrishna094 avatar Oct 12 '18 19:10 rohitkrishna094