aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-09-22 21:44:39 +0200
committerHeinrich Fenkart <[email protected]>2014-09-22 21:44:39 +0200
commitacf3c0bf4848528b7d7cd5e5a3e890c4d33515fe (patch)
tree517627545fb204bc5dcb2b9218676e2804ff422d
parent7441d3f4c55e9180dcc1f7700fe1c9710213f032 (diff)
parentc4f431d262c1443bdf07a32890967c2b9688db62 (diff)
downloadbootstrap-acf3c0bf4848528b7d7cd5e5a3e890c4d33515fe.tar.xz
bootstrap-acf3c0bf4848528b7d7cd5e5a3e890c4d33515fe.zip
Merge pull request #14570 from twbs/remove-modal-open-after-backdrop-closed
Remove `.modal-open` class after backdrop is hidden
-rw-r--r--js/modal.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/js/modal.js b/js/modal.js
index d0426b01b..cef013a56 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')
})
}