From 01405523229f3b9750326aa832716ad12009cf4b Mon Sep 17 00:00:00 2001 From: ysds Date: Fri, 23 Nov 2018 21:41:42 +0900 Subject: [PATCH] Fix body scrolling issue when modal open (#27698) --- js/src/modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/modal.js b/js/src/modal.js index 74a16d461119..5dfb64407ed6 100644 --- a/js/src/modal.js +++ b/js/src/modal.js @@ -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() {