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

Clear button on individual pills/clear all button in multiselect ComboBox #2215

Open
morgankertz opened this issue Aug 29, 2024 · 2 comments
Labels
css Needs change in css package enhancement New feature or request react Needs change in react package

Comments

@morgankertz
Copy link

Feature

We are using the ComboBox in Pineapple and would like to request the ability to clear selected items without having to scroll the list to find them. If there are lots of options in the ComboBox, this can become cumbersome for the user to find/deselect the item.

scrolltodeselect

Additionally, we'd like to request the ability to clear the ComboBox entirely in one click without having to deselect each item. I've put some examples on how react-select works that would be ideal for our use.

Examples

Include a close or "x" button on each "pill" that appears when multiple items are selected. This example is from react-select:

image

Also include a close or "x" button to the far right of the component that clears all selected elements. This example is also from react-select:

clearallreactselect

@morgankertz morgankertz added the enhancement New feature or request label Aug 29, 2024
@mayank99
Copy link
Contributor

For the "remove" button on individual tags, you can track and 👍 this issue: #907

For the "clear" button in the combobox input, I think it totally makes sense and would be useful even for single-select ComboBox. You might be able to implement it yourself using InputWithDecorations but we should just have it built in.

@morgankertz
Copy link
Author

Ah, sorry I should've double checked for that before I filed this. I will track that work item 😄 Thanks for your reply Mayank!

@FlyersPh9 FlyersPh9 added css Needs change in css package react Needs change in react package labels Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Needs change in css package enhancement New feature or request react Needs change in react package
Projects
None yet
Development

No branches or pull requests

3 participants