From ae979498144692203486d3c9bf5de0055c7b4737 Mon Sep 17 00:00:00 2001 From: Steven Fitzpatrick Date: Thu, 1 Mar 2018 01:15:07 +0000 Subject: [PATCH] fix(Input): Change prop name for passing down ref --- src/components/Input/Input.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Input/Input.js b/src/components/Input/Input.js index c51ef1d..2a8195e 100644 --- a/src/components/Input/Input.js +++ b/src/components/Input/Input.js @@ -59,7 +59,7 @@ class Input extends PureComponent { autoFocus, spellCheck, autoComplete, - fieldRef + innerRef } = this.props; const classNames = classnames(''); @@ -78,7 +78,7 @@ class Input extends PureComponent { autoFocus={autoFocus} spellCheck={spellCheck} autoComplete={autoComplete} - innerRef={fieldRef} + innerRef={innerRef} onChange={this.handleChange} onBlur={this.handleBlur} /> @@ -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 = {