Skip to content

Commit 853283d

Browse files
committed
fix: update search input to use params for term
1 parent b00d64e commit 853283d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/recipes/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div data-controller="search" data-search-url="<%= search_recipes_path %>">
22
<p class="input_has_icons_left">
3-
<%= text_field_tag :search, nil, class: '', placeholder: t('action.search'), autocomplete: 'off',
3+
<%= text_field_tag :search, params[:term], class: '', placeholder: t('action.search'), autocomplete: 'off',
44
'data-action': 'keyup->search#search',
55
'data-search-target': 'term' %>
66
<i class="fas fa-search"></i>

0 commit comments

Comments
 (0)