diff --git a/src/HintedInput.react.js b/src/HintedInput.react.js index 1dd75fe9..91178415 100644 --- a/src/HintedInput.react.js +++ b/src/HintedInput.react.js @@ -12,8 +12,46 @@ const STYLES = { padding: 0, }; +// Shim around a standard input to normalize how props are applied. +class StandardInput extends React.Component { + render() { + const {inputClassName, inputStyle, ...otherProps} = this.props; + + return ( + this._input = input} + style={{ + ...STYLES, + ...inputStyle, + width: '100%', + }} + /> + ); + } + + // Mirror the AutosizeInput API for consistency. + getInput = () => { + return this._input; + } +} + class HintedInput extends React.Component { render() { + return ( +