Skip to content

Commit 2f6cf8d

Browse files
author
Daniel Groves
committed
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.
1 parent 05a337c commit 2f6cf8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
that.el.on('blur.autocomplete', function () { that.onBlur(); });
197197
that.el.on('focus.autocomplete', function () { that.onFocus(); });
198198
that.el.on('change.autocomplete', function (e) { that.onKeyUp(e); });
199+
that.el.on('input.autocomplete', function (e) { that.onKeyUp(e); });
199200
},
200201

201202
onFocus: function () {
@@ -670,7 +671,7 @@
670671
html += '<div class="' + className + '" data-index="' + i + '">' + formatResult(suggestion, value) + '</div>';
671672
});
672673

673-
this.adjustContainerWidth();
674+
this.adjustContainerWidth();
674675

675676
noSuggestionsContainer.detach();
676677
container.html(html);

0 commit comments

Comments
 (0)