We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isScrollable()
1 parent 0414a54 commit d744bc8Copy full SHA for d744bc8
src/utils/get-scroll-parent.ts
@@ -1,6 +1,6 @@
1
const isScrollable = (node: Element) => {
2
if (!(node instanceof HTMLElement || node instanceof SVGElement)) {
3
- return null
+ return false
4
}
5
const style = getComputedStyle(node)
6
return ['overflow', 'overflow-x', 'overflow-y'].some((propertyName) => {
0 commit comments