mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
fix getComputedStyle (#2705)
This commit is contained in:
parent
1e873f03ab
commit
4ea057c046
@ -5,7 +5,6 @@ import {
|
|||||||
getScrollTop,
|
getScrollTop,
|
||||||
getElementTop,
|
getElementTop,
|
||||||
getVisibleHeight,
|
getVisibleHeight,
|
||||||
getComputedStyle,
|
|
||||||
getScrollEventTarget
|
getScrollEventTarget
|
||||||
} from '../utils/scroll';
|
} from '../utils/scroll';
|
||||||
|
|
||||||
@ -75,7 +74,7 @@ export default sfc({
|
|||||||
const scrollerHeight = getVisibleHeight(scroller);
|
const scrollerHeight = getVisibleHeight(scroller);
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
if (!scrollerHeight || getComputedStyle(el).display === 'none' || el.offsetParent === null) {
|
if (!scrollerHeight || window.getComputedStyle(el).display === 'none' || el.offsetParent === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user