Skip to content

Commit b702cd9

Browse files
yunxifdicd2k3
authored andcommitted
fix: boundary PropType error (#15)
* fix: boundary PropType error * Temporary disable eslint rule no-undef
1 parent 8d8982a commit b702cd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export default class ScrollIntoViewIfNeeded extends PureComponent {
3535
'if-needed',
3636
]),
3737
boundary: PropTypes.oneOfType([
38-
PropTypes.element,
38+
// eslint-disable-next-line no-undef
39+
PropTypes.instanceOf(Element),
3940
PropTypes.func,
4041
]),
4142
skipOverflowHiddenElements: PropTypes.bool,

0 commit comments

Comments
 (0)