From 841c5c891dcac7e8235a6aa9e086a0ee745c8cfc Mon Sep 17 00:00:00 2001 From: Chris <3865054+chrisrollins65@users.noreply.github.com> Date: Thu, 22 Feb 2018 19:40:53 +0100 Subject: [PATCH] Added option to show dropdown when clicking on the input --- src/jquery.autocomplete.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(''); + } } },