0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Fix body scrolling issue when modal open (#27698)

This commit is contained in:
ysds 2018-11-23 21:41:42 +09:00 committed by Johann-S
parent 3e25bf403a
commit 0140552322

View File

@ -127,8 +127,6 @@ class Modal {
this._adjustDialog()
$(document.body).addClass(ClassName.OPEN)
this._setEscapeEvent()
this._setResizeEvent()
@ -466,6 +464,8 @@ class Modal {
.data('padding-right', actualPadding)
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
}
$(document.body).addClass(ClassName.OPEN)
}
_resetScrollbar() {