From 345e9d148929e0747ba64e5353544cf36b69a416 Mon Sep 17 00:00:00 2001 From: Matheus Richard Date: Tue, 3 Sep 2024 06:04:51 -0300 Subject: [PATCH] Fix sidebar toggle selector (#307) --- app/assets/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 50e91152..76aaa987 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -15,6 +15,6 @@ window.addEventListener("turbolinks:load", () => { if (window.matchMedia("(min-width: 768px)").matches) { - document.querySelector("#sidebar details:not(open) summary")?.click(); + document.querySelector("#sidebar details:not([open]) summary")?.click(); } });