From 2f6cf8de00c6d364126d54b0bcda3014a41523ef Mon Sep 17 00:00:00 2001 From: Daniel Groves Date: Thu, 20 Nov 2014 16:27:13 +0000 Subject: [PATCH] Fix for Firefox Android not updating Within Firefox Android the change/key events are not fired while the keyboard is showing, only when it is hidden. Using the input event fixes this. --- src/jquery.autocomplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 8c4d0502..414a8ca7 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -196,6 +196,7 @@ that.el.on('blur.autocomplete', function () { that.onBlur(); }); that.el.on('focus.autocomplete', function () { that.onFocus(); }); that.el.on('change.autocomplete', function (e) { that.onKeyUp(e); }); + that.el.on('input.autocomplete', function (e) { that.onKeyUp(e); }); }, onFocus: function () { @@ -670,7 +671,7 @@ html += '
' + formatResult(suggestion, value) + '
'; }); - this.adjustContainerWidth(); + this.adjustContainerWidth(); noSuggestionsContainer.detach(); container.html(html);