Skip to content

Commit

Permalink
fix(modal): fix for issue-6683 body is scrollable if you close just o…
Browse files Browse the repository at this point in the history
…ne modal
  • Loading branch information
lexasq committed Oct 22, 2024
1 parent 4741422 commit 1555096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class ModalContainerComponent implements OnInit, OnDestroy {
if (
document &&
document.body &&
this.bsModalService?.getModalsCount() === 1
this.bsModalService?.getModalsCount() === 0
) {
this._renderer.removeClass(document.body, CLASS_NAME.OPEN);
this._renderer.setStyle(document.body, 'overflow-y', '');
Expand Down

0 comments on commit 1555096

Please sign in to comment.