Skip to content

Commit aceaf22

Browse files
illiteratewriterTheSharpieOne
authored andcommitted
fix(Modal): allow innerRef to be function or string (#1091)
1 parent 214da8c commit aceaf22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Modal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ const propTypes = {
4848
]),
4949
backdropTransition: FadePropTypes,
5050
modalTransition: FadePropTypes,
51-
innerRef: PropTypes.object,
51+
innerRef: PropTypes.oneOfType([
52+
PropTypes.object,
53+
PropTypes.string,
54+
PropTypes.func,
55+
]),
5256
};
5357

5458
const propsToOmit = Object.keys(propTypes);

0 commit comments

Comments
 (0)