Skip to content

Commit

Permalink
Fix #770
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Sep 6, 2016
1 parent 199befe commit bbee9ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const factory = (Chip, Input) => {

suggestions () {
let suggest = new Map();
const rawQuery = this.state.query || this.props.multiple ? '' : this.props.value;
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
2 changes: 1 addition & 1 deletion lib/autocomplete/Autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ var factory = function factory(Chip, Input) {
key: 'suggestions',
value: function suggestions() {
var suggest = new Map();
var rawQuery = this.state.query || this.props.multiple ? '' : this.props.value;
var rawQuery = this.state.query || (this.props.multiple ? '' : this.props.value);
var query = (rawQuery || '').toLowerCase().trim();
var values = this.values();
var source = this.source();
Expand Down

0 comments on commit bbee9ef

Please sign in to comment.