Skip to content

Commit bfe3567

Browse files
authoredJun 8, 2021
Fix loading in SSR (gatsby, next.js) (#21)
Fixes #19
1 parent 0ad8118 commit bfe3567

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ ScrollIntoViewIfNeeded.propTypes = {
7171
'if-needed',
7272
]),
7373
boundary: PropTypes.oneOfType([
74-
// eslint-disable-next-line no-undef
75-
PropTypes.instanceOf(Element),
74+
PropTypes.element,
7675
PropTypes.func,
7776
]),
7877
skipOverflowHiddenElements: PropTypes.bool,

0 commit comments

Comments
 (0)
Please sign in to comment.