Skip to content

Commit

Permalink
forcefully restore the body element on close modal
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Dec 29, 2023
1 parent 02af309 commit 8ca986f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/services/modalService.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ core.service("ModalService", function ($timeout) {
modalElement.off('shown.bs.modal');
modalElement = undefined;
}

// forcefully restore the body element
var body = angular.element('body');
body.removeClass('modal-open');
body.css('padding-right', '');
};

return ModalService;
Expand Down

0 comments on commit 8ca986f

Please sign in to comment.