We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b00d64e commit 853283dCopy full SHA for 853283d
app/views/recipes/index.html.erb
@@ -1,6 +1,6 @@
1
<div data-controller="search" data-search-url="<%= search_recipes_path %>">
2
<p class="input_has_icons_left">
3
- <%= text_field_tag :search, nil, class: '', placeholder: t('action.search'), autocomplete: 'off',
+ <%= text_field_tag :search, params[:term], class: '', placeholder: t('action.search'), autocomplete: 'off',
4
'data-action': 'keyup->search#search',
5
'data-search-target': 'term' %>
6
<i class="fas fa-search"></i>
0 commit comments