From 1edaa73a038a3390c92471be2b2c7f32baebed0c Mon Sep 17 00:00:00 2001 From: Alec Fenichel Date: Thu, 23 Mar 2017 09:35:38 -0400 Subject: [PATCH] Fix scrolling issue #331 Credit due to @franciscocsysteames --- src/js/bootstrap-dialog.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/js/bootstrap-dialog.js b/src/js/bootstrap-dialog.js index 816818a..a5edc4c 100644 --- a/src/js/bootstrap-dialog.js +++ b/src/js/bootstrap-dialog.js @@ -1074,6 +1074,9 @@ $(this).remove(); } BootstrapDialog.moveFocus(); + if ($('.modal').hasClass('in')) { + $('body').addClass('modal-open'); + } }); // Backdrop, I did't find a way to change bs3 backdrop option after the dialog is popped up, so here's a new wheel.