Skip to content

Commit

Permalink
Set data-turbo-frame=main on clear search link (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz authored Sep 18, 2024
1 parent 4a36b2c commit efa90f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/trestle/search/_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= search_field_tag :q, params[:q], class: "form-control", autocomplete: "off", placeholder: admin.t("search.placeholder", default: "Search") %>
<%= link_to icon("fas fa-times"), admin.path, class: "btn btn-clear-search" if params[:q].present? %>
<%= link_to icon("fas fa-times"), admin.path, class: "btn btn-clear-search", data: { turbo_frame: "main" } if params[:q].present? %>
</div>
<% end %>
</div>

0 comments on commit efa90f7

Please sign in to comment.