Choices: Show optgroup during search

Created on 11 Mar 2019  路  6Comments  路  Source: Choices-js/Choices

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.

stale

Most helpful comment

Please re-open this issue.

All 6 comments

Please may you provide a jsfiddle highlighting the issue

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

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

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!

Please re-open this issue.

Can this issue be re-opened?

why haven't this been implemented?

Was this page helpful?
0 / 5 - 0 ratings