From 0a70d6795e4a3ec25ab6daed6dce4ba7ce5192a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kalle=20Va=CC=88nska=CC=88?= Date: Thu, 27 Jun 2019 14:03:01 +0200 Subject: [PATCH] fix(core): set scrollparent to window if elm.parentNode is null #254 --- 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..bc35641 100644 --- a/src/components/InfiniteLoading.vue +++ b/src/components/InfiniteLoading.vue @@ -320,7 +320,7 @@ export default { } if (!result) { - if (elm.tagName === 'BODY') { + if (elm.tagName === 'BODY' || !elm.parentNode) { result = window; } else if (!this.forceUseInfiniteWrapper && ['scroll', 'auto'].indexOf(getComputedStyle(elm).overflowY) > -1) { result = elm;