1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

more select voodoo

This commit is contained in:
Matthias Kretschmann 2019-02-15 16:36:05 +01:00
parent 2df327fa9f
commit 7f4735e46c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -49,7 +49,15 @@ export default class Input extends PureComponent<InputProps, InputState> {
}
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<InputProps, InputState> {
required={required}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
defaultValue={''}
onChange={onChange}
defaultValue={''}
value={value}
>
<option value="">---</option>
{options &&