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

Show optgroup during search #544

Closed
powerbuoy opened this issue Mar 11, 2019 · 7 comments
Closed

Show optgroup during search #544

powerbuoy opened this issue Mar 11, 2019 · 7 comments
Labels

Comments

@powerbuoy
Copy link

I'm using <optgroup> to group choices and it works fine. When the user starts searching, though, the optgroups aren't rendered. This is a huge problem for me as several choices have the same name but are under a different group. Without the group names it's impossible for the user to know what he's selecting.

Is there any way to show the optgroups even during search? Any chance you could add this functionality otherwise?

The order of search results would need to change if this is enabled I guess because you only want to print the group names once. The order of the groups should probably also be configurable. In my case I would like to retain the order of the groups regardless of where the most relevant search result is.

@jshjohnson
Copy link
Collaborator

Please may you provide a jsfiddle highlighting the issue

@powerbuoy
Copy link
Author

powerbuoy commented Mar 12, 2019

Here's a fiddle that highlights this, and my other two issues in one:

https://jsfiddle.net/n7yvrdzL/8/

@stale
Copy link

stale bot commented Jun 20, 2019

Thanks for contributing to this issue. As it has been 60 days since the last activity, this issue is being automatically closed. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again!

@stale stale bot added the stale label Jun 20, 2019
@stale stale bot closed this as completed Jun 30, 2019
@alanhamlett
Copy link

Please re-open this issue.

@leereichardt
Copy link

Can this issue be re-opened?

@Pezhvak
Copy link

Pezhvak commented Jan 27, 2021

why haven't this been implemented?

@dayglorious
Copy link

Is there a fix to this issue, or a workaround for it?

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

No branches or pull requests

6 participants