From 48f10bcb732f6541b4299541d231b20b6451813a Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Fri, 30 Dec 2016 20:46:27 +0100 Subject: [PATCH] Convert Autocmplete from tabs to spaces --- src/components/inputs/AutocompleteInput.jsx | 57 +++++++++++---------- 1 file changed, 30 insertions(+), 27 deletions(-) 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]} +
+ )} + /> } }