Skip to content

Commit 2a38aee

Browse files
cs1707cn3lfs
authored andcommitted
Utils: fix isScroll (ElemeFE#21065)
1 parent 96fa206 commit 2a38aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/dom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function setStyle(element, styleName, value) {
176176
export const isScroll = (el, vertical) => {
177177
if (isServer) return;
178178

179-
const determinedDirection = vertical !== null || vertical !== undefined;
179+
const determinedDirection = vertical !== null && vertical !== undefined;
180180
const overflow = determinedDirection
181181
? vertical
182182
? getStyle(el, 'overflow-y')

0 commit comments

Comments
 (0)