Skip to content

Commit

Permalink
Update exercise-popup.js
Browse files Browse the repository at this point in the history
fixed overflow on body after opening popup
  • Loading branch information
maksar24 authored Feb 26, 2024
1 parent c4a6a85 commit 4bfcdc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/exercise-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
};

0 comments on commit 4bfcdc8

Please sign in to comment.