Skip to content

Commit 82711e1

Browse files
committed
Fix #1904
1 parent 8b1d76d commit 82711e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoS
177177
height,
178178
width;
179179

180-
if (el !== window && el !== getWindowScrollingElement()) {
180+
if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
181181
elRect = el.getBoundingClientRect();
182182
top = elRect.top;
183183
left = elRect.left;

0 commit comments

Comments
 (0)