We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61403f3 commit 77b9f54Copy full SHA for 77b9f54
admin/app/components/solidus_admin/orders/show/component.html.erb
@@ -1,4 +1,4 @@
1
-<%= page do %>
+<%= page("data-action": "turbo:before-cache@window->#{stimulus_id}#closeMenus") do %>
2
<%= page_header do %>
3
<%= page_header_back(solidus_admin.orders_path) %>
4
<%= page_header_title(t('.title', number: @order.number)) %>
admin/app/components/solidus_admin/orders/show/component.js
@@ -1,5 +1,7 @@
import { Controller } from '@hotwired/stimulus'
export default class extends Controller {
-
+ closeMenus() {
5
+ this.event.querySelectorAll('details').forEach(details => details.removeAttribute('open'));
6
+ }
7
}
0 commit comments