Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions paper-autocomplete-suggestions.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,14 @@

if (value != null && value.length >= this.minLength) {
value = value.toLowerCase();

// Search for the word in the source properties.
if (this.source && this.source.length > 0) {
// Call queryFn. User can override queryFn() to provide custom search functionality
this._suggestions = this.queryFn(this.source, value);
}
} else {
value = '';
}

// Search for the word in the source properties.
if (this.source && this.source.length > 0) {
// Call queryFn. User can override queryFn() to provide custom search functionality
this._suggestions = this.queryFn(this.source, value);
} else {
this._suggestions = [];
}
Expand Down