mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 18:00:27 +08:00
[bugfix] List: visibility check (#1345)
This commit is contained in:
parent
8139eb5479
commit
19d1c45121
@ -78,7 +78,7 @@ export default create({
|
|||||||
const scrollerHeight = utils.getVisibleHeight(scroller);
|
const scrollerHeight = utils.getVisibleHeight(scroller);
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
if (!scrollerHeight || utils.getComputedStyle(el).display === 'none') {
|
if (!scrollerHeight || utils.getComputedStyle(el).display === 'none' || el.offsetParent === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user