From 8711e29703ae3875715bd33b69cc12bea4655c72 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Wed, 14 Aug 2019 10:50:51 +0800 Subject: [PATCH] support 'overflow: overlay' --- src/components/InfiniteLoading.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InfiniteLoading.vue b/src/components/InfiniteLoading.vue index 8305469..13dd284 100644 --- a/src/components/InfiniteLoading.vue +++ b/src/components/InfiniteLoading.vue @@ -322,7 +322,7 @@ export default { if (!result) { if (elm.tagName === 'BODY') { result = window; - } else if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) { + } else if (!this.forceUseInfiniteWrapper && ['scroll', 'auto', 'overlay'].indexOf(getComputedStyle(elm).overflowY) > -1) { result = elm; } else if (elm.hasAttribute('infinite-wrapper') || elm.hasAttribute('data-infinite-wrapper')) { result = elm;