From b417602aa2ae2329b26c9ad6642c40e1f6133b1d Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 30 Jan 2023 11:46:17 +0100 Subject: [PATCH] fix: lint --- packages/core/useScrollLock/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/useScrollLock/index.ts b/packages/core/useScrollLock/index.ts index e45af6ac315..27088bcd323 100644 --- a/packages/core/useScrollLock/index.ts +++ b/packages/core/useScrollLock/index.ts @@ -9,8 +9,8 @@ function checkOverflowScroll(ele: Element): boolean { if (style.overflowX === 'scroll' || style.overflowY === 'scroll') { return true } else if ( - style.overflowX === 'auto' && ele.elementHeight < ele.scrollHeight || - style.overflowY === 'auto' && ele.elementWidth < ele.scrollWidth + (style.overflowX === 'auto' && ele.elementHeight < ele.scrollHeight) || + (style.overflowY === 'auto' && ele.elementWidth < ele.scrollWidth) ) { return true }