]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove `.modal-open` class after backdrop is hidden 14570/head
authorHeinrich Fenkart <hnrch02@gmail.com>
Mon, 8 Sep 2014 22:10:18 +0000 (00:10 +0200)
committerHeinrich Fenkart <hnrch02@gmail.com>
Wed, 17 Sep 2014 07:21:09 +0000 (09:21 +0200)
Fixes #14274.
Fixes #14632.

js/modal.js

index d0426b01b6780ff2236b85acfffcf8f0d7a4d146..cef013a56f78e0e7c730e9644c252b1b3b09ecbd 100644 (file)
 
     this.isShown = false
 
-    this.$body.removeClass('modal-open')
-
-    this.resetScrollbar()
     this.escape()
 
     $(document).off('focusin.bs.modal')
     var that = this
     this.$element.hide()
     this.backdrop(function () {
+      that.$body.removeClass('modal-open')
+      that.resetScrollbar()
       that.$element.trigger('hidden.bs.modal')
     })
   }