mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 22:27:39 +00:00
Use empty suggestions array if it is bad query.
This commit is contained in:
parent
9d8118fa6b
commit
2a0f1f7b89
@ -575,7 +575,7 @@
|
||||
options.onSearchError.call(that.element, q, jqXHR, textStatus, errorThrown);
|
||||
});
|
||||
} else {
|
||||
options.onSearchComplete.call(that.element, q, result.suggestions);
|
||||
options.onSearchComplete.call(that.element, q, []);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user