josefarias / hotwire_combobox

An accessible autocomplete for Ruby on Rails.
https://hotwirecombobox.com
MIT License
456 stars 30 forks source link

Grouping options #87

Closed edwinv closed 6 months ago

edwinv commented 6 months ago

We'd love to replace our internal combobox/select component with the Hotwire Combobox component. Our current implementation relies on generating JS in the frontend, which means its not compatible with Turbo 8 morphing.

One of the features we currently need and is missing from this component is grouping. Sometimes we have long lists of options that are grouped. We use optgroup in our HTML and render specific headers before each group. When we filter the list, the groups always stay visible when they contain a matching option.

Full list: CleanShot 2024-03-10 at 15 59 56@2x

Filtered list:

CleanShot 2024-03-10 at 16 00 40@2x

Are there plans to add this feature to this component?

josefarias commented 6 months ago

Let's move this conversation to a GH discussion: https://github.com/josefarias/hotwire_combobox/discussions/88