diff --git a/src/components/inputs/AutocompleteInput.jsx b/src/components/inputs/AutocompleteInput.jsx index 2ba6ef8..70ac561 100644 --- a/src/components/inputs/AutocompleteInput.jsx +++ b/src/components/inputs/AutocompleteInput.jsx @@ -69,8 +69,10 @@ class AutocompleteInput extends React.Component { getItemValue={(item) => item[0]} onSelect={v => this.props.onChange(v)} onChange={(e, v) => this.props.onChange(v)} - shouldItemRender={(item, value) => { - return item[0].toLowerCase().indexOf(value.toLowerCase()) > -1 + shouldItemRender={(item, value="") => { + if (typeof(value) === "string") { + return item[0].toLowerCase().indexOf(value.toLowerCase()) > -1 + } }} renderItem={(item, isHighlighted) => (