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

select voodoo

This commit is contained in:
Matthias Kretschmann 2019-02-15 16:32:22 +01:00
parent 0f5285a137
commit 2df327fa9f
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -49,7 +49,7 @@ export default class Input extends PureComponent<InputProps, InputState> {
}
public InputComponent = () => {
const { type, options, group, name, required } = this.props
const { type, options, group, name, required, onChange } = this.props
const wrapClass = this.inputWrapClasses()
@ -63,8 +63,10 @@ export default class Input extends PureComponent<InputProps, InputState> {
required={required}
onFocus={this.toggleFocus}
onBlur={this.toggleFocus}
defaultValue={''}
onChange={onChange}
>
<option value="none">---</option>
<option value="">---</option>
{options &&
options.map((option: string, index: number) => (
<option