From 4bfcdc855fa5db8924c4a7ab4c0cd332d4d24094 Mon Sep 17 00:00:00 2001 From: maksar24 <74876375+maksar24@users.noreply.github.com> Date: Mon, 26 Feb 2024 17:40:21 +0100 Subject: [PATCH] Update exercise-popup.js fixed overflow on body after opening popup --- src/js/exercise-popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/exercise-popup.js b/src/js/exercise-popup.js index 3dc75bd..d717cde 100644 --- a/src/js/exercise-popup.js +++ b/src/js/exercise-popup.js @@ -214,7 +214,7 @@ function showModalExercise() { function closeModalExercise() { overlay.classList.add('hidden'); modalExercise.classList.add('hidden'); - document.body.style.overflow = 'scroll'; + document.body.style.overflow = 'auto'; overlay.removeEventListener('click', clickOnOverlay); document.removeEventListener('keydown', clickOnEscape); -}; \ No newline at end of file +};