mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 23:01:00 +00:00
Removing empty query validation on value change
Removing empty query validation on value change, so I can set 'minChars' to 0 and show suggestions when the user click on input. Exemple: var $autocomplete = new $.Autocomplete($('#wishlist_name')[0], { lookup: wishlist_types, minChars: 0, }); $('#wishlist_name').focus(function(){ $autocomplete.onValueChange(); });
This commit is contained in:
parent
56195317c8
commit
b87a208066
@ -359,7 +359,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (q === '' || q.length < that.options.minChars) {
|
||||
if (q.length < that.options.minChars) {
|
||||
that.hide();
|
||||
} else {
|
||||
that.getSuggestions(q);
|
||||
|
Loading…
Reference in New Issue
Block a user