update condition
This commit is contained in:
parent
2cadeeb724
commit
c23a87d8ff
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue