Skip to content

Commit

Permalink
fix(Input): Change prop name for passing down ref
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenfitzpatrick committed Mar 1, 2018
1 parent a37fa27 commit ae97949
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Input extends PureComponent {
autoFocus,
spellCheck,
autoComplete,
fieldRef
innerRef
} = this.props;

const classNames = classnames('');
Expand All @@ -78,7 +78,7 @@ class Input extends PureComponent {
autoFocus={autoFocus}
spellCheck={spellCheck}
autoComplete={autoComplete}
innerRef={fieldRef}
innerRef={innerRef}
onChange={this.handleChange}
onBlur={this.handleBlur}
/>
Expand Down Expand Up @@ -181,7 +181,11 @@ Input.propTypes = {
/**
* Classname for css class for input container
*/
className: PropTypes.string
className: PropTypes.string,
/**
* Pass down a ref for the Input
*/
innerRef: PropTypes.node
};

Input.defaultProps = {
Expand Down

0 comments on commit ae97949

Please sign in to comment.