diff --git a/js/modal.js b/js/modal.js index d0426b01b6..cef013a56f 100644 --- a/js/modal.js +++ b/js/modal.js @@ -107,9 +107,6 @@ this.isShown = false - this.$body.removeClass('modal-open') - - this.resetScrollbar() this.escape() $(document).off('focusin.bs.modal') @@ -150,6 +147,8 @@ var that = this this.$element.hide() this.backdrop(function () { + that.$body.removeClass('modal-open') + that.resetScrollbar() that.$element.trigger('hidden.bs.modal') }) }