Skip to content

Commit

Permalink
Added PropTypes.func to innerRef in HotKeys (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
shripadk authored and greena13 committed Apr 11, 2019
1 parent 5d2bae1 commit 31ae4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HotKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ HotKeys.propTypes = {
/**
* A ref to add to the underlying DOM-mountable node
*/
innerRef: PropTypes.object
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
};

export default HotKeys;

0 comments on commit 31ae4ed

Please sign in to comment.