Skip to content

Commit

Permalink
Fix sidebar toggle selector (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusRich authored Sep 3, 2024
1 parent bd303bf commit 345e9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

0 comments on commit 345e9d1

Please sign in to comment.