Skip to content
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

[Feature]: Combo box - Enhancements to selectable options #524

Open
2 tasks
cserepesmark opened this issue May 3, 2024 · 1 comment
Open
2 tasks

[Feature]: Combo box - Enhancements to selectable options #524

cserepesmark opened this issue May 3, 2024 · 1 comment

Comments

@cserepesmark
Copy link

Describe the feature

Removable selection

It would be beneficial to add a feature where an 'X' appears on the right side of the selected item. Clicking this 'X' would clear the current selection.

Option to Create and Select New Values

Consider adding a "Create option" button, placed separately below the list of options. This button would allow users to add a new item based on the input value in the filter field. Upon creation, the new option should automatically be selected and added to the list.

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
@sadeghbarati
Copy link
Collaborator

sadeghbarati commented May 5, 2024

Current radix-vue Combobox doesn't have this feature, but you can add this yourself like reset v-model value to empty string with an event


Note

Listbox will be base component for Select and Combobox components in v2

Btw you can use Listbox component which got the selectionBehavior prop

Popover + Listbox + TagsInput

https://stackblitz.com/edit/5stbzq

Stackblitz demo needs some tweaks after that I'll add this to radix-vue Listbox docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants