From 90c252c055c4b162afa13e6bc9493de226dd8610 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 10 May 2019 12:30:31 +0200 Subject: [PATCH] pass through all props to textarea --- client/src/components/atoms/Form/Input.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/components/atoms/Form/Input.tsx b/client/src/components/atoms/Form/Input.tsx index d6e5433..9f5db49 100644 --- a/client/src/components/atoms/Form/Input.tsx +++ b/client/src/components/atoms/Form/Input.tsx @@ -79,8 +79,7 @@ export default class Input extends PureComponent { name, required, onChange, - value, - rows + value } = this.props const wrapClass = this.inputWrapClasses() @@ -119,7 +118,7 @@ export default class Input extends PureComponent { className={styles.input} onFocus={this.toggleFocus} onBlur={this.toggleFocus} - rows={rows} + {...this.props} /> )