diff --git a/static/js/nav.js b/static/js/nav.js index a9cf33c..a8fb745 100644 --- a/static/js/nav.js +++ b/static/js/nav.js @@ -11,5 +11,8 @@ function toggle_menu() { element_button.addEventListener("click", toggle_menu); for (i = 0; i < nav_items.length; i++) { - nav_items[i].addEventListener("click", toggle_menu); + nav_items[i].addEventListener("click", function() { + toggle_menu(); + document.body.classList.remove("noscroll"); + }); }