From 401c9471ad8554ac402b6b9ca71456132a29f0fd Mon Sep 17 00:00:00 2001 From: Daan Roet Date: Wed, 1 Nov 2023 21:20:54 +0100 Subject: [PATCH] fix: less strict prop type so that it works inside SSR (#92) --- src/ScrollSyncPane.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ScrollSyncPane.js b/src/ScrollSyncPane.js index cbd890d..5c4f9ff 100644 --- a/src/ScrollSyncPane.js +++ b/src/ScrollSyncPane.js @@ -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 = {