stimulus-autocomplete
stimulus-autocomplete copied to clipboard
Make the query paramater name `q` customizable
It'd be nice if the query paramater name q was customizable via the stimulus paramater/value HTML attribute like
<div data-controller="autocomplete"
data-autocomplete-url-value="/birds/search"
data-autocomplete-query-param="name_or_desc_cont"
.... />
This will make it really easy to integrate with Rails search gems like Ransack.
bump!
Fixed in https://github.com/afcapel/stimulus-autocomplete/pull/112