Skip to content

Commit d744bc8

Browse files
fix: isScrollable() return boolean
1 parent 0414a54 commit d744bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/utils/get-scroll-parent.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const isScrollable = (node: Element) => {
22
if (!(node instanceof HTMLElement || node instanceof SVGElement)) {
3-
return null
3+
return false
44
}
55
const style = getComputedStyle(node)
66
return ['overflow', 'overflow-x', 'overflow-y'].some((propertyName) => {

0 commit comments

Comments
 (0)