[bugfix] List: should not trigger load event when hidden (#751)

This commit is contained in:
neverland
2018-03-22 13:18:38 +08:00
committed by GitHub
parent 70fbdea35d
commit ddbe338919
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}