mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 23:01:00 +00:00
Added option to show dropdown when clicking on the input
This commit is contained in:
parent
75a8ae9038
commit
841c5c891d
@ -122,7 +122,8 @@
|
||||
showNoSuggestionNotice: false,
|
||||
noSuggestionNotice: 'No results',
|
||||
orientation: 'bottom',
|
||||
forceFixPosition: false
|
||||
forceFixPosition: false,
|
||||
showOnFocus: false
|
||||
};
|
||||
|
||||
function _lookupFilter(suggestion, originalQuery, queryLowerCase) {
|
||||
@ -224,6 +225,9 @@
|
||||
|
||||
if (that.el.val().length >= that.options.minChars) {
|
||||
that.onValueChange();
|
||||
if (that.options.showOnFocus) {
|
||||
that.getSuggestions('');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user