From 70d9b32db428d8b7df233ae6a5cd2a77576f8bb3 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 15 Mar 2024 20:28:30 +0100 Subject: [PATCH] fix(menu): don't disable overflow when menu open --- layouts/partials/header.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index ee76de0..3bd0049 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -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"; + */ } })