|
|
|
|
|
by ZoomerCretin
682 days ago
|
|
On mobile, it appears to open regardless of where you tap. This appears to be the culprit: ```const n = document.getElementById('nav-header'); document.addEventListener(
'click',
s => {
u.hidden ||
s.target === null ||
n === null ||
n.contains(s.target) ||
r()
}```
Above, in the same function, there exists the function `e.addEventListener('click', r);`, which is likely closer to what the author intended. This fires the 'click' event any time the page is clicked, which opens the nav menu when it shouldn't. |
|