josefarias / hotwire_combobox

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

Fix async selection #47

Closed josefarias closed 8 months ago

josefarias commented 8 months ago

Short debounce times can make requests trample over each other.

Deselect should clear the hidden field even if no selected option is found (due to options being loaded async, not because of lack of selection).

Filtering when ensuring selection shouldn't re-commit. If it does, it won't find the selected option.