mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Fix body scrolling issue when modal open (#27698)
This commit is contained in:
parent
3e25bf403a
commit
0140552322
@ -127,8 +127,6 @@ class Modal {
|
|||||||
|
|
||||||
this._adjustDialog()
|
this._adjustDialog()
|
||||||
|
|
||||||
$(document.body).addClass(ClassName.OPEN)
|
|
||||||
|
|
||||||
this._setEscapeEvent()
|
this._setEscapeEvent()
|
||||||
this._setResizeEvent()
|
this._setResizeEvent()
|
||||||
|
|
||||||
@ -466,6 +464,8 @@ class Modal {
|
|||||||
.data('padding-right', actualPadding)
|
.data('padding-right', actualPadding)
|
||||||
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
|
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$(document.body).addClass(ClassName.OPEN)
|
||||||
}
|
}
|
||||||
|
|
||||||
_resetScrollbar() {
|
_resetScrollbar() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user