mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 20:04:09 +00:00
[bugfix] List: should not trigger load event when hidden (#751)
This commit is contained in:
@@ -79,7 +79,7 @@ export default create({
|
||||
const scrollerHeight = utils.getVisibleHeight(scroller);
|
||||
|
||||
/* istanbul ignore next */
|
||||
if (!scrollerHeight) {
|
||||
if (!scrollerHeight || utils.getComputedStyle(el).display === 'none') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user