We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb1667e commit 652283eCopy full SHA for 652283e
src/components/InfiniteLoading.vue
@@ -270,16 +270,14 @@
270
getScrollParent(elm = this.$el) {
271
let result;
272
273
- if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) {
+ if (elm.tagName === 'BODY') {
274
+ result = window;
275
+ } else if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) {
276
result = elm;
277
} else if (elm.hasAttribute('infinite-wrapper') || elm.hasAttribute('data-infinite-wrapper')) {
278
279
}
280
- if (elm.tagName === 'BODY') {
- result = window;
281
- }
282
-
283
return result || this.getScrollParent(elm.parentNode);
284
},
285
0 commit comments