Skip to content

Commit

Permalink
added removing class 'modal-open' when popup is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil888-m committed Dec 11, 2024
1 parent 4ac6e09 commit 57dc1a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/big-picture-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function renderComments(photoId) {
function hidePhotoPopup() {
hide(bigPhotoPopup);
document.removeEventListener('keydown', onEscapeKeydown);
document.body.classList.remove('modal-open');
}
function showPhotoPopup() {
document.body.classList.add('modal-open');
Expand Down

0 comments on commit 57dc1a8

Please sign in to comment.