2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2025-02-03 04:18:26 +00:00

Fixed a bug where the suggestion list briefly flashes when the selected suggestion is a prefix of another suggestion. Prior to this fix, the problem can be reproduced as follows:

1. Open the index.html demo (this url is convenient: https://rawgit.com/devbridge/jQuery-Autocomplete/master/index.htm)
2. In the country name field type "N" then select "Niger" from the list (this country is a prefix for "Nigeria").
3. Click the country name field again.  The suggestion list will flash briefly then dissappear.  The user must then click off of the field and back onto it to actually see the suggestion list.
This commit is contained in:
Mark McEver 2016-11-03 15:21:33 -05:00
parent 017965bddd
commit c08a31dd78

View File

@ -853,6 +853,7 @@
var that = this; var that = this;
that.hide(); that.hide();
that.onSelect(i); that.onSelect(i);
that.disableKillerFn();
}, },
moveUp: function () { moveUp: function () {