Choices-js / Choices

A vanilla JS customisable select box/text input plugin ⚡️
https://choices-js.github.io/Choices/
MIT License
6.25k stars 616 forks source link

Show groupHeading when searching/filtering #1223

Open donar-github opened 1 month ago

donar-github commented 1 month ago

It would be very useful if the group heading was filtered (displayed) during the search as long as child elements (of optgroup) were found.

Bakual commented 3 weeks ago

I would second this request. I have a list with similar entries in different groups. When filtered, it is a bit hard to select the correct one when the group heading isn't shown anymore. Maybe the groupname could also shown behind the entry, hidden by default, but visible if the list is filtered.