Commit 01405523 authored by ysds's avatar ysds Committed by Johann-S
Browse files

Fix body scrolling issue when modal open (#27698)

parent 3e25bf40
1 merge request!28721Hot test
Showing with 2 additions and 2 deletions
+2 -2
...@@ -127,8 +127,6 @@ class Modal { ...@@ -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 { ...@@ -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() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment