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 2f2a235 commit 8b47b2dCopy full SHA for 8b47b2d
src/components/InfiniteLoading.vue
@@ -263,12 +263,12 @@
263
getScrollParent(elm = this.$el) {
264
let result;
265
266
- if (elm.tagName === 'BODY') {
267
- result = window;
268
- } else if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) {
+ if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) {
269
result = elm;
270
} else if (elm.hasAttribute('infinite-wrapper') || elm.hasAttribute('data-infinite-wrapper')) {
271
+ } else if (elm.tagName === 'BODY') {
+ result = window;
272
}
273
274
return result || this.getScrollParent(elm.parentNode);
0 commit comments