Skip to content

Commit 08cc103

Browse files
authored
fix(propTypes): change offsetParent type from React Node to DOM Element (#220)
Fix offsetParent propType from React Node to DOM Element
1 parent b6f4186 commit 08cc103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/propTypes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const resizableProps: Object = {
7575
children: PropTypes.node,
7676
disabled: PropTypes.bool,
7777
enableUserSelectHack: PropTypes.bool,
78-
offsetParent: PropTypes.node,
78+
offsetParent: PropTypes.instanceOf(Element),
7979
grid: PropTypes.arrayOf(PropTypes.number),
8080
handle: PropTypes.string,
8181
nodeRef: PropTypes.object,

0 commit comments

Comments
 (0)