Skip to content

Commit b104249

Browse files
author
Clauderic Demers
committed
fix: issue with getComputedStyle and getScrollingParent
1 parent 822193d commit b104249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function isScrollable(el) {
231231
}
232232

233233
export function getScrollingParent(el) {
234-
if (!el) {
234+
if (!(el instanceof HTMLElement)) {
235235
return null;
236236
} else if (isScrollable(el)) {
237237
return el;

0 commit comments

Comments
 (0)