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

[BUG] Multi-Select 'Select All' Ignores Filtered List #899

Closed
stolve opened this issue Nov 29, 2022 · 0 comments · Fixed by #914
Closed

[BUG] Multi-Select 'Select All' Ignores Filtered List #899

stolve opened this issue Nov 29, 2022 · 0 comments · Fixed by #914
Labels
bug Something isn't working new issue This issue has yet to receive attention

Comments

@stolve
Copy link

stolve commented Nov 29, 2022

When using the multi select component (https://tangoe.design/ui-kit/forms/select#form-select-multiple), if a list is filtered and the users clicks the 'Select All' option, it applies every option in the list not just the expected results after the user has filtered.

Also the component needs to show the filtered count in the 'Select All' link (i.e. 'Select All 8 Results').
When nothing is filtered the count should still be displayed in the 'Select All' link. So if there are 100 total results in the list, when the dropdown is open then the link should display as 'Select All 100 Results'.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://tangoe.design/ui-kit/forms/select#form-select-multiple'
  2. Click on the multi-select dropdown
  3. Type 'Sni'
  4. Click 'Select All'
  5. See error

Expected behavior
Only the filtered (visible) options should be selected. For example, when clicking the 'Select All 8 Results', update code to only select those filtered 8 results and not the full list of options.

@stolve stolve added bug Something isn't working new issue This issue has yet to receive attention labels Nov 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 new issue This issue has yet to receive attention
Projects
None yet
1 participant