Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dpschen committed Jan 30, 2023
1 parent 922c0ba commit b417602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useScrollLock/index.ts
Expand Up @@ -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
}
Expand Down

0 comments on commit b417602

Please sign in to comment.