Commit b87a208
committed
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();
});1 parent 5619531 commit b87a208
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| |||
0 commit comments