tnobler
Joined 6/18/2020
tnobler said almost 4 years ago on Autocomplete with StimulusJS :
This is great!  I am trying to implement this for a product field, so that you search products.  I have 
product.name
as the content for the content_tag in the view:
<%= content_tag :li, product.name, role: :option, data: { 'autocomplete-value': product.id } %>
How can I add other product attributes to show up in the search display?  In other words, when I type "Some Product" the results list displays "Some Product Name | Price | Description | etc"?



tnobler said almost 4 years ago on Autocomplete with StimulusJS :
One more...how can you make it to where the search input is case-insensitive?  When I search "li", "Light bulb" is not a result, but it is for search "Li".  Thanks for the quick response!

tnobler said almost 4 years ago on Autocomplete with StimulusJS :
You the man!