From c23a87d8ff7dfed662b5288d6fb77da1a7b3ebbc Mon Sep 17 00:00:00 2001
From: taehoon
Date: Mon, 21 Oct 2019 15:56:16 -0400
Subject: [PATCH] update condition
---
src/directives/body_scroll_lock.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/directives/body_scroll_lock.js b/src/directives/body_scroll_lock.js
index a375e852..d7f114b5 100644
--- a/src/directives/body_scroll_lock.js
+++ b/src/directives/body_scroll_lock.js
@@ -36,7 +36,7 @@ const enableBodyScroll = (el) => {
lockerEls = lockerEls.filter(e => e !== el)
}
setTimeout(() => {
- if (!lockerEls.length) {
+ if (lockerEls.length === 0) {
if (previousNavPaddingRight !== undefined) {
document.getElementById('nav').style.paddingRight = previousNavPaddingRight
// Restore previousNavPaddingRight to undefined so disableBodyScroll knows it can be set again.