Closed kulbirsaini closed 2 years ago
It'd be nice if the query paramater name q was customizable via the stimulus paramater/value HTML attribute like
q
<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
It'd be nice if the query paramater name
q
was customizable via the stimulus paramater/value HTML attribute likeThis will make it really easy to integrate with Rails search gems like Ransack.