josefarias / hotwire_combobox

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

Generate an id if one is not passed to combobox #66

Closed josefarias closed 6 months ago

josefarias commented 6 months ago

Not passing an id and rendering more than one combobox means several combobox elements will have the same id, since we build all nested element ids relative to the canonical_id.