From 82711e10c8b9235d374ddde9e3a46cf66c9243ef Mon Sep 17 00:00:00 2001 From: owen-m1 Date: Tue, 29 Dec 2020 21:23:25 -0500 Subject: [PATCH] Fix #1904 --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 5dcc81e6f..09a3ce02e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -177,7 +177,7 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS height, width; - if (el !== window && el !== getWindowScrollingElement()) { + if (el !== window && el.parentNode && el !== getWindowScrollingElement()) { elRect = el.getBoundingClientRect(); top = elRect.top; left = elRect.left;