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:
parent
3e25bf403a
commit
0140552322
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user