Skip to content

Commit

Permalink
Fix body scrolling issue when modal open (#27698)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysds authored and Johann-S committed Nov 23, 2018
1 parent 3e25bf4 commit 0140552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ class Modal {

this._adjustDialog()

$(document.body).addClass(ClassName.OPEN)

this._setEscapeEvent()
this._setResizeEvent()

Expand Down Expand Up @@ -466,6 +464,8 @@ class Modal {
.data('padding-right', actualPadding)
.css('padding-right', `${parseFloat(calculatedPadding) + this._scrollbarWidth}px`)
}

$(document.body).addClass(ClassName.OPEN)
}

_resetScrollbar() {
Expand Down

0 comments on commit 0140552

Please sign in to comment.