fix(menu): don't disable overflow when menu open
This commit is contained in:
parent
dcdde5a41c
commit
70d9b32db4
1 changed files with 5 additions and 1 deletions
|
@ -46,12 +46,16 @@
|
|||
const nav_button = document.getElementById("navi-toggle")
|
||||
nav_button.addEventListener("change", event => {
|
||||
if (event.target.checked) {
|
||||
/*
|
||||
document.documentElement.style.overflow = "hidden";
|
||||
document.body.style.overflow = "hidden";
|
||||
*/
|
||||
}
|
||||
if (!event.target.checked) {
|
||||
document.documentElement.overflow = "initial";
|
||||
/*
|
||||
document.documentElement.style.overflow = "initial";
|
||||
document.body.style.overflow = "initial";
|
||||
*/
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue