mirror of https://github.com/ElemeFE/element
Utils: fix isScroll (#21065)
parent
8168d14e67
commit
2c39cce649
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue