Skip to content

Commit 6c77716

Browse files
Allow SVG element
Added check to allow node to be an instance of an SVG Element
1 parent eb89785 commit 6c77716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrollparent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
};
2929

3030
var scrollParent = function (node) {
31-
if (!(node instanceof HTMLElement)) {
31+
if (!(node instanceof HTMLElement || node instanceof SVGElement)) {
3232
return ;
3333
}
3434

0 commit comments

Comments
 (0)