Skip to content

Commit

Permalink
Merge pull request #14570 from twbs/remove-modal-open-after-backdrop-…
Browse files Browse the repository at this point in the history
…closed

Remove `.modal-open` class after backdrop is hidden
  • Loading branch information
hnrch02 committed Sep 22, 2014
2 parents 7441d3f + c4f431d commit acf3c0b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@

this.isShown = false

this.$body.removeClass('modal-open')

this.resetScrollbar()
this.escape()

$(document).off('focusin.bs.modal')
Expand Down Expand Up @@ -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')
})
}
Expand Down

0 comments on commit acf3c0b

Please sign in to comment.