2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-09 14:50:57 +00:00

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.
This commit is contained in:
Daniel Groves 2014-11-20 16:27:13 +00:00
parent 05a337cba9
commit 2f6cf8de00

View File

@ -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 += '<div class="' + className + '" data-index="' + i + '">' + formatResult(suggestion, value) + '</div>';
});
this.adjustContainerWidth();
this.adjustContainerWidth();
noSuggestionsContainer.detach();
container.html(html);