Skip to content

Commit 345e9d1

Browse files
authored
Fix sidebar toggle selector (#307)
1 parent bd303bf commit 345e9d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/application.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515

1616
window.addEventListener("turbolinks:load", () => {
1717
if (window.matchMedia("(min-width: 768px)").matches) {
18-
document.querySelector("#sidebar details:not(open) summary")?.click();
18+
document.querySelector("#sidebar details:not([open]) summary")?.click();
1919
}
2020
});

0 commit comments

Comments
 (0)