From 7f4735e46c06230cc72a0946425cf0c5b30976a7 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 15 Feb 2019 16:36:05 +0100 Subject: [PATCH] more select voodoo --- src/components/atoms/Form/Input.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/components/atoms/Form/Input.tsx b/src/components/atoms/Form/Input.tsx index c29b84c..643434c 100644 --- a/src/components/atoms/Form/Input.tsx +++ b/src/components/atoms/Form/Input.tsx @@ -49,7 +49,15 @@ export default class Input extends PureComponent { } public InputComponent = () => { - const { type, options, group, name, required, onChange } = this.props + const { + type, + options, + group, + name, + required, + onChange, + value + } = this.props const wrapClass = this.inputWrapClasses() @@ -63,8 +71,9 @@ export default class Input extends PureComponent { required={required} onFocus={this.toggleFocus} onBlur={this.toggleFocus} - defaultValue={''} onChange={onChange} + defaultValue={''} + value={value} > {options &&