stimulus-autocomplete icon indicating copy to clipboard operation
stimulus-autocomplete copied to clipboard

Make the query paramater name `q` customizable

Open kulbirsaini opened this issue 3 years ago • 1 comments

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.

kulbirsaini avatar Jun 24 '22 09:06 kulbirsaini

bump!

kulbirsaini avatar Jul 17 '22 20:07 kulbirsaini

Fixed in https://github.com/afcapel/stimulus-autocomplete/pull/112

afcapel avatar Aug 18 '22 18:08 afcapel