Skip to content

Commit

Permalink
fix(useScrollLock): fix scrollable children check (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
valerypatorius committed May 9, 2023
1 parent 5a013bf commit cdc2861
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'
|| (style.overflowX === 'auto' && ele.clientHeight < ele.scrollHeight)
|| (style.overflowY === 'auto' && ele.clientWidth < ele.scrollWidth)
|| (style.overflowX === 'auto' && ele.clientWidth < ele.scrollWidth)
|| (style.overflowY === 'auto' && ele.clientHeight < ele.scrollHeight)
) {
return true
}
Expand Down

0 comments on commit cdc2861

Please sign in to comment.