mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-29 08:14:06 +00:00
Exit if there is no value for hint.
This commit is contained in:
parent
e3e27bb066
commit
6a9c2caaf7
@ -507,6 +507,10 @@
|
|||||||
value = that.el.val().toLowerCase(),
|
value = that.el.val().toLowerCase(),
|
||||||
bestMatch = null;
|
bestMatch = null;
|
||||||
|
|
||||||
|
if (!value) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$.each(that.suggestions, function (i, suggestion) {
|
$.each(that.suggestions, function (i, suggestion) {
|
||||||
var foundMatch = suggestion.value.toLowerCase().indexOf(value) === 0;
|
var foundMatch = suggestion.value.toLowerCase().indexOf(value) === 0;
|
||||||
if (foundMatch) {
|
if (foundMatch) {
|
||||||
|
Loading…
Reference in New Issue
Block a user