-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Pickers: Specify maximum number of items to select #1304
Comments
Better to have a prop to limit selected picker items, similar to #652 |
You can kind of achieve this by disabling the underlying AutoFill component: This does however disable the option to remove selected items via the backspace button. |
Hi @mdahamiwal , Thanks for you answer. That could be good solution as well. |
@dzearing |
Is there any thoughts/decisions about implementing this? I couldn't make out if it was on roadmap, and if its not, do we have to wait till after v1? I wouldn't mind taking a crack at it. I imagine a maxItems: number; prop on the basepicker, and conditionally render the autofill input. which I think would still allow removing a selected tag, and thereby rerendering the autofill after amount of items is below the threshold? |
Hi @ohritz , |
Hi @jquintozamora, I've seen that, thanks :). I was actually going to use it, but then we realized we need the tree view picker like the SharePoint oob control as part of the component aswell. So I started building my own. Haven't gotten so far as to implement the tree view yet. |
I´d like to suggest a new functionality on Tag Picker to allow handle both scenarios multiple selection and single selection, ideally configurable by a prop. By now (as I know) it only supports multiple tag selection.
Thanks!
The text was updated successfully, but these errors were encountered: