Skip to content

Commit

Permalink
Update modal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored and ysds committed Mar 18, 2020
1 parent 71e6a6b commit 14b6b22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/src/modal.js
Expand Up @@ -410,8 +410,7 @@ class Modal {
return
}

const isModalOverflowing =
this._element.scrollHeight > document.documentElement.clientHeight
const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight

if (!isModalOverflowing) {
this._element.style.overflowY = 'hidden'
Expand Down

0 comments on commit 14b6b22

Please sign in to comment.