Allow search perma's form to target the whole page

... to pick up the url change and <head> update
This commit is contained in:
Adrien Maston
2025-12-18 10:13:55 +01:00
parent 9bbf739b2a
commit 5d6f3f5156
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
</div>
<div class="bar__input" data-bar-target="search" hidden>
<%= render "searches/form", query_terms: "" %>
<%= render "searches/form", query_terms: "", target_turbo_frame: "bar_content" %>
</div>
<%= tag.dialog id: "bar-modal", class: "bar__modal", data: {
+1 -1
View File
@@ -1,4 +1,4 @@
<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { bar_target: "form", turbo_frame: "bar_content" } do |form| %>
<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { bar_target: "form", turbo_frame: defined?(target_turbo_frame) ? target_turbo_frame : nil } do |form| %>
<%= form.label :q, "Search Fizzy", class: "font-weight-black txt-nowrap" %>
<%= text_field_tag :q, query_terms,
class: "search__input input",