2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-09-19 08:49:01 +00:00

Added option to show dropdown when clicking on the input

This commit is contained in:
Chris 2018-02-22 19:40:53 +01:00
parent 75a8ae9038
commit 841c5c891d

View File

@ -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('');
}
}
},