We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15a0a0e commit c75cb6cCopy full SHA for c75cb6c
docs/ui.js
@@ -7,4 +7,10 @@ document.addEventListener('DOMContentLoaded', () => {
7
icon.addEventListener('click', () => {
8
header.classList.toggle('is-open');
9
});
10
+
11
+ header.addEventListener('click', (event) => {
12
+ if (event.target.closest('a')) {
13
+ header.classList.remove('is-open');
14
+ }
15
+ });
16
0 commit comments