Skip to content

Commit

Permalink
fix: less strict prop type so that it works inside SSR (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
DRoet authored Nov 1, 2023
1 parent bfbd0a9 commit 401c947
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ScrollSyncPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export default class ScrollSyncPane extends Component {
enabled: PropTypes.bool,
innerRef: PropTypes.oneOfType([// Either a function
PropTypes.func,
// Or the instance of a DOM native element (see the note about SSR)
PropTypes.shape({ current: PropTypes.instanceOf(Element) })])
PropTypes.shape({ current: PropTypes.any })])
};

static defaultProps = {
Expand Down

0 comments on commit 401c947

Please sign in to comment.