From 684f67abf8ff79fbd674c5fb43130add907d78c2 Mon Sep 17 00:00:00 2001 From: meriadec Date: Thu, 28 Jun 2018 10:19:46 +0200 Subject: [PATCH] Dont forward every prop to Input --- src/components/base/Input/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/base/Input/index.js b/src/components/base/Input/index.js index e4affb40..ce210cc1 100644 --- a/src/components/base/Input/index.js +++ b/src/components/base/Input/index.js @@ -160,7 +160,15 @@ class Input extends PureComponent { render() { const { isFocus } = this.state - const { renderLeft, renderRight, containerProps, editInPlace, small, error } = this.props + const { + renderLeft, + renderRight, + containerProps, + editInPlace, + small, + error, + ...props + } = this.props return ( { {renderLeft} (this._input = n)} onFocus={this.handleFocus}