-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autocomplete component (Multiple Selection) #1857
Autocomplete component (Multiple Selection) #1857
Conversation
Update type definitions. Ensure correct autocomplete rendering for multiple selections.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@amauryfischer is attempting to deploy a commit to the NextUI Team on Vercel. A member of the Team first needs to authorize it. |
@jrgarciadev Sorry i'm not sure how i'm supposed to commit on the new branch you created, so i just forked again and created a new PR on you're newly created branch.... |
Update autocomplete to add a slot for tagContainer and add css for tw variants
Fixing multicombo case where single selection was still applied and update a bit of TS
可以支持多选了不 |
Is this planning on being merged? |
! would love to see this get merged |
Closing due to inactivity. |
Not that many changes there, any hope for adding this soon? |
📝 Description
Add support for multiple selection via selectionMode "single" or "multiple" to the autocomplete component.
⛳️ Current behavior (updates)
The current behavior only allows single selection. This is because react-stately uses useComboStateProps, which only allows for single selection. The "multi" version in react-stately doesn't seem to be a complete project: adobe/react-spectrum#2140.
What I propose is to create a new hook called "useMultiComboBoxState" and tweak the original behavior to allow for both multiple and single selection.
🚀 New behavior
Allow the user to select multiple elements using selectionMode.
💣 Is this a breaking change (Yes/No):
No
📝 Additional Information
This is a work in progress. Since this is my first PR, please don't hesitate to guide me through the coding and/or style.