diff --git a/client/components/combobox.jsx b/client/components/combobox.jsx index 8c9833470..6c3f03f76 100644 --- a/client/components/combobox.jsx +++ b/client/components/combobox.jsx @@ -84,8 +84,7 @@ const Combobox = createClass({ if(!this.state.showDropdown) return null; if(this.props.autoSuggest && !this.state.inputFocused){ const suggestMethod = this.props.autoSuggest.suggestMethod; - const filterOn = this.props.autoSuggest.filterOn; - + const filterOn = _.isString(this.props.autoSuggest.filterOn) ? [this.props.autoSuggest.filterOn] : this.props.autoSuggest.filterOn; const filteredArrays = filterOn.map((attr)=>{ const children = dropdownChildren.filter((item)=>{ if(suggestMethod === 'includes'){ diff --git a/client/homebrew/editor/metadataEditor/metadataEditor.jsx b/client/homebrew/editor/metadataEditor/metadataEditor.jsx index 6242a1409..8d4c44876 100644 --- a/client/homebrew/editor/metadataEditor/metadataEditor.jsx +++ b/client/homebrew/editor/metadataEditor/metadataEditor.jsx @@ -247,7 +247,8 @@ const MetadataEditor = createClass({ suggestMethod : 'startsWith', clearAutoSuggestOnClick : true, filterOn : ['data-value', 'data-detail', 'title'] - }}> + }} + >