Utils: fix isScroll (#21065)

pull/21074/head
好多大米 2021-06-11 16:19:03 +08:00 committed by GitHub
parent 8168d14e67
commit 2c39cce649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ export function setStyle(element, styleName, value) {
export const isScroll = (el, vertical) => { export const isScroll = (el, vertical) => {
if (isServer) return; if (isServer) return;
const determinedDirection = vertical !== null || vertical !== undefined; const determinedDirection = vertical !== null && vertical !== undefined;
const overflow = determinedDirection const overflow = determinedDirection
? vertical ? vertical
? getStyle(el, 'overflow-y') ? getStyle(el, 'overflow-y')