From c3a8d46ebf056d9e039297277fce87214856c239 Mon Sep 17 00:00:00 2001 From: Tony Narlock Date: Sun, 6 Jun 2021 17:46:08 -0500 Subject: [PATCH] Fix loading in SSR (gatsby, next.js) Fixes #19 --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 60c5a20..3617328 100644 --- a/src/index.js +++ b/src/index.js @@ -71,8 +71,7 @@ ScrollIntoViewIfNeeded.propTypes = { 'if-needed', ]), boundary: PropTypes.oneOfType([ - // eslint-disable-next-line no-undef - PropTypes.instanceOf(Element), + PropTypes.element, PropTypes.func, ]), skipOverflowHiddenElements: PropTypes.bool,