Browse Source

Fix scrolling issue #331

Credit due to @franciscocsysteames
Alec Fenichel 8 years ago
parent
commit
1edaa73a03
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/js/bootstrap-dialog.js

+ 3 - 0
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.