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

Add showClear property to MultiSelect #1627

Closed
SadiaWaleem opened this issue Oct 12, 2020 · 1 comment
Closed

Add showClear property to MultiSelect #1627

SadiaWaleem opened this issue Oct 12, 2020 · 1 comment
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@SadiaWaleem
Copy link

I'm submitting a feature request in MultiSelect to clear the selected items.. (check one with "x")

[ ] bug report
[x ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
Currently, If multiple values are selected in MultiSelect component, the 'x' icon on dropdown is only closing the drop down not clearing the selected items in the list.

Expected behavior
Provide a feature that user can clear the selected items in MultiSelect like we used to do in DropDown by setting the showClear property to "true".

Minimal reproduction of the problem with instructions
In PrimeReact multiselect component, user can select the items from the list, the 'x' icon is using just to close the dropdown. Although in other components like in dropdown etc, 'x' is used to clear the chosen value along with closing the dropdown. For MultiSelect this feature would definitely require that user can clear the selected list by clicking on 'x' button.

https://primefaces.org/primereact/showcase/#/multiselect

Please tell us about your environment:

  • React version:
    16.13.1

  • PrimeReact version:
    4.2.1

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
@mertsincan mertsincan changed the title MultiSelect needs a feature for Clearing the selected items on clicking the 'x' icon. Add showClear property to MultiSelect Nov 29, 2020
@mertsincan mertsincan self-assigned this Nov 29, 2020
@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label Nov 29, 2020
@mertsincan mertsincan added this to the 5.0.2 milestone Nov 29, 2020
@SadiaWaleem
Copy link
Author

Thanks for implementing this. Thats the must need feature in multiselect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

2 participants