From 01db66757b931233ae7f219256692a6f42939c40 Mon Sep 17 00:00:00 2001 From: Matheus Richard Date: Fri, 30 Aug 2024 14:10:36 -0300 Subject: [PATCH] Fix sidebar toggle selector --- 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(); } });