diff --git a/src/components/inputs/AutocompleteInput.jsx b/src/components/inputs/AutocompleteInput.jsx index 6f725ba..8c9e13b 100644 --- a/src/components/inputs/AutocompleteInput.jsx +++ b/src/components/inputs/AutocompleteInput.jsx @@ -13,41 +13,44 @@ class AutocompleteInput extends React.Component { } render() { - return item[0]} - onSelect={v => this.props.onChange(v)} + items={this.props.options} + getItemValue={(item) => item[0]} + onSelect={v => this.props.onChange(v)} onChange={(e, v) => this.props.onChange(v)} - renderItem={(item, isHighlighted) => ( -
- {item[1]} -
- )} - /> + renderItem={(item, isHighlighted) => ( +
+ {item[1]} +
+ )} + /> } }