diff --git a/src/utils.js b/src/utils.js
index <HASH>..<HASH> 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -231,7 +231,7 @@ function isScrollable(el) {
 }
 
 export function getScrollingParent(el) {
-  if (!el) {
+  if (!(el instanceof HTMLElement)) {
     return null;
   } else if (isScrollable(el)) {
     return el;
fix: issue with getComputedStyle and getScrollingParent