diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 173ac5e7..b9601788 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -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(''); + } } },