Skip to content

Commit

Permalink
Merge pull request #16872 from vlazar/fix/awesomplete-highlight
Browse files Browse the repository at this point in the history
Fire awesomplete-highlight event only if some item was really highlighted
  • Loading branch information
LeaVerou committed Mar 16, 2016
2 parents a1e800b + a9e0c9f commit 52402fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions awesomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ _.prototype = {
if (i > -1 && lis.length > 0) {
lis[i].setAttribute("aria-selected", "true");
this.status.textContent = lis[i].textContent;
}

$.fire(this.input, "awesomplete-highlight", {
text: this.suggestions[this.index]
});
$.fire(this.input, "awesomplete-highlight", {
text: this.suggestions[this.index]
});
}
},

select: function (selected, origin) {
Expand Down

0 comments on commit 52402fa

Please sign in to comment.