mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Utils: fix isScroll (#21065)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user