Skip to content

Commit

Permalink
support both hook style refs and class style hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bondydaa committed Apr 17, 2023
1 parent ce4ba20 commit 80b2d92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/TextInput/baseTextInputPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ const propTypes = {
hideFocusedState: PropTypes.bool,

/** Forward the inner ref */
innerRef: PropTypes.func,
innerRef: PropTypes.oneOfType([
PropTypes.func,
PropTypes.shape({current: PropTypes.instanceOf(Element)}),
]),

/** Maximum characters allowed */
maxLength: PropTypes.number,
Expand Down

0 comments on commit 80b2d92

Please sign in to comment.