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

MultiSelectFilter drop list has duplicate entries #138

Open
jason-ransom-slalom opened this issue Aug 5, 2021 · 0 comments
Open

MultiSelectFilter drop list has duplicate entries #138

jason-ransom-slalom opened this issue Aug 5, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@jason-ransom-slalom
Copy link
Contributor

When all values are cleared using the MultiSelectFilter module and an initialValue has been provided, that value appears twice in the list.

image

Repro steps:

  1. Navigate to MultiSelectFilter Story
  2. Expand the MultiSelect Filter.
  3. Clear out all values.
  4. Expand the dropdown by clicking on the empty input.

Suggested Fix:
Create/Apply a function to the MultiSelect component state initialization to filter the initial items down to unique items by comparing the value property of each item (e.g. no initial items should have the same item.value).

@jason-ransom-slalom jason-ransom-slalom added the bug Something isn't working label Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant