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(); } });