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 selection for SingleSelect and MultiSelect #1411

Closed
jamtrott opened this issue Jun 7, 2021 · 3 comments · Fixed by #1516
Closed

Clear selection for SingleSelect and MultiSelect #1411

jamtrott opened this issue Jun 7, 2021 · 3 comments · Fixed by #1516

Comments

@jamtrott
Copy link

jamtrott commented Jun 7, 2021

Hi!

We are using SingleSelect and MultiSelect components from EDS. Unfortunately, there is apparently no way for the user to clear the current selection for either of these components. In the case of SingleSelect, there is no way to go back to an empty selection once something has been selected. For MultiSelect, on the other hand, it is possible to deselect each item. However, in our use case, the user might have selected half a dozen options out of a list of tens or hundreds, so it would be tiresome to have to deselect each one.

It would be really helpful if somehow the selection could be cleared and an event was generated, so that the UI could be updated accordingly.

@mimarz
Copy link
Contributor

mimarz commented Jun 8, 2021

Thanks for suggesting this feature!

We have planned a few improvements and tweaks for Select-components in the not to far future, so maybe we can get this done then as-well :)

@mimarz mimarz added the design label Aug 2, 2021
@mimarz
Copy link
Contributor

mimarz commented Aug 2, 2021

@equinor/eds-ux We need to have a look at how a potential clear selection function should behave and look for selects

@lucasveil
Copy link
Contributor

We will definitely have a look at it. In the meantime, we suggest to have an "empty" state for single select that has the function to clear the field. For multi select, there have been some discussion to have the "chips" stacked just under with the close icon.
Screenshot 2021-08-02 at 12 05 18

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

Successfully merging a pull request may close this issue.

3 participants