Commit 2c39cce6 authored by 好多大米's avatar 好多大米 Committed by GitHub

Utils: fix isScroll (#21065)

parent 8168d14e
......@@ -176,7 +176,7 @@ export function setStyle(element, styleName, value) {
export const isScroll = (el, vertical) => {
if (isServer) return;
const determinedDirection = vertical !== null || vertical !== undefined;
const determinedDirection = vertical !== null && vertical !== undefined;
const overflow = determinedDirection
? vertical
? getStyle(el, 'overflow-y')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment