Skip to content

Commit c0eef97

Browse files
author
Claudéric Demers
authored
fix: helperContainer PropType definition broke server-side rendering (#471)
1 parent bd1fcba commit c0eef97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SortableContainer/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ export default function sortableContainer(
105105
]),
106106
getContainer: PropTypes.func,
107107
getHelperDimensions: PropTypes.func,
108-
helperContainer: PropTypes.instanceOf(HTMLElement),
108+
helperContainer:
109+
typeof HTMLElement === 'undefined'
110+
? PropTypes.any
111+
: PropTypes.instanceOf(HTMLElement),
109112
};
110113

111114
static childContextTypes = {

0 commit comments

Comments
 (0)