Skip to content

Commit

Permalink
[bugfix] List: visibility check (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jun 28, 2018
1 parent 8139eb5 commit 19d1c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/list/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 19d1c45

Please sign in to comment.