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

Grouping by optgroup loses items when searching #233

Open
mwill81 opened this issue Jun 20, 2023 · 1 comment
Open

Grouping by optgroup loses items when searching #233

mwill81 opened this issue Jun 20, 2023 · 1 comment

Comments

@mwill81
Copy link

mwill81 commented Jun 20, 2023

This can be reproduced on the optgroup demo page: https://crlcu.github.io/multiselect/examples/optgroup.html

  1. Make sure all items are on the left side.
  2. Notice under "German Cars" title there are 2 items: Audi and Mercedes
  3. Search for Audi and move it to the right.
  4. Clear the search field "Mercedes" and the grouping "German Cars" is gone.
@mwill81
Copy link
Author

mwill81 commented Jul 13, 2023

To clarify, this only happens when using the optgroup. I don't know if there's an easy way to reset the remaining items so they all appear again? I've tried turning off the sorting but that didn't work.

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

No branches or pull requests

1 participant