Skip to content

Commit 401c947

Browse files
authored
fix: less strict prop type so that it works inside SSR (#92)
1 parent bfbd0a9 commit 401c947

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ScrollSyncPane.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export default class ScrollSyncPane extends Component {
2828
enabled: PropTypes.bool,
2929
innerRef: PropTypes.oneOfType([// Either a function
3030
PropTypes.func,
31-
// Or the instance of a DOM native element (see the note about SSR)
32-
PropTypes.shape({ current: PropTypes.instanceOf(Element) })])
31+
PropTypes.shape({ current: PropTypes.any })])
3332
};
3433

3534
static defaultProps = {

0 commit comments

Comments
 (0)