mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-05 05:40:59 +00:00
Remove .modal-open class after backdrop is hidden
Fixes #14274. Fixes #14632.
This commit is contained in:
parent
859ddc11fb
commit
c4f431d262
1 changed files with 2 additions and 3 deletions
|
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue