Skip to content

Commit

Permalink
fix(Modal): allow innerRef to be function or string (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
illiteratewriter authored and TheSharpieOne committed Jun 25, 2018
1 parent 214da8c commit aceaf22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ const propTypes = {
]),
backdropTransition: FadePropTypes,
modalTransition: FadePropTypes,
innerRef: PropTypes.object,
innerRef: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string,
PropTypes.func,
]),
};

const propsToOmit = Object.keys(propTypes);
Expand Down

0 comments on commit aceaf22

Please sign in to comment.