mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[bugfix] List: visibility check (#1345)
This commit is contained in:
@@ -78,7 +78,7 @@ export default create({
|
||||
const scrollerHeight = utils.getVisibleHeight(scroller);
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (!scrollerHeight || utils.getComputedStyle(el).display === 'none') {
|
||||
if (!scrollerHeight || utils.getComputedStyle(el).display === 'none' || el.offsetParent === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user