Skip to content

Commit c08a31d

Browse files
committed
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.
1 parent 017965b commit c08a31d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@
853853
var that = this;
854854
that.hide();
855855
that.onSelect(i);
856+
that.disableKillerFn();
856857
},
857858

858859
moveUp: function () {

0 commit comments

Comments
 (0)