Skip to content

Commit bbee9ef

Browse files
committed
Fix #770
1 parent 199befe commit bbee9ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/autocomplete/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const factory = (Chip, Input) => {
163163

164164
suggestions () {
165165
let suggest = new Map();
166-
const rawQuery = this.state.query || this.props.multiple ? '' : this.props.value;
166+
const rawQuery = this.state.query || (this.props.multiple ? '' : this.props.value);
167167
const query = (rawQuery || '').toLowerCase().trim();
168168
const values = this.values();
169169
const source = this.source();

lib/autocomplete/Autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ var factory = function factory(Chip, Input) {
174174
key: 'suggestions',
175175
value: function suggestions() {
176176
var suggest = new Map();
177-
var rawQuery = this.state.query || this.props.multiple ? '' : this.props.value;
177+
var rawQuery = this.state.query || (this.props.multiple ? '' : this.props.value);
178178
var query = (rawQuery || '').toLowerCase().trim();
179179
var values = this.values();
180180
var source = this.source();

0 commit comments

Comments
 (0)