We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Element
1 parent 5e5518f commit b81dcceCopy full SHA for b81dcce
CHANGELOG.md
@@ -1,5 +1,11 @@
1
# Changelog
2
3
+## [6.0.2](https://github.com/jakezatecky/react-dual-listbox/compare/v6.0.0...v6.0.2) (2023-02-06)
4
+
5
+### Fixed
6
7
+* Add SSR-safe check for the `Element` type
8
9
## [6.0.1](https://github.com/jakezatecky/react-dual-listbox/compare/v6.0.0...v6.0.1) (2023-12-13)
10
11
### Fixed
src/js/shapes/refShape.js
@@ -1,8 +1,9 @@
import PropTypes from 'prop-types';
+const elementType = typeof Element === 'undefined' ? () => {} : Element;
const refShape = PropTypes.oneOfType([
PropTypes.func,
- PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
+ PropTypes.shape({ current: PropTypes.instanceOf(elementType) }),
]);
export default refShape;
0 commit comments