diff options
author | ysds <fellows3@gmail.com> | 2018-11-23 15:41:42 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2018-11-23 15:41:42 +0300 |
commit | 01405523229f3b9750326aa832716ad12009cf4b (patch) | |
tree | 51f12121fc9299c1a493186484dfd78939d2de3d /js/src/modal.js | |
parent | 3e25bf403a9d07dbeef701c340c1de47bb4e58ca (diff) |
Fix body scrolling issue when modal open (#27698)
Diffstat (limited to 'js/src/modal.js')
-rw-r--r-- | js/src/modal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/modal.js b/js/src/modal.js index 74a16d4611..5dfb64407e 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() { |