Skip to content

Commit

Permalink
Fix #711
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Aug 22, 2016
1 parent b528ab1 commit abf91d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ const factory = (Chip, Input) => {

suggestions () {
let suggest = new Map();
const query = (this.state.query || (!this.props.multiple ? this.props.value : '')).toLowerCase().trim() || '';
const rawQuery = this.state.query || this.props.multiple ? '' : this.props.value;
const query = (rawQuery || '').toLowerCase().trim();
const values = this.values();
const source = this.source();

Expand Down

0 comments on commit abf91d3

Please sign in to comment.