Skip to content

Commit

Permalink
dyve#77 Issue fixed
Browse files Browse the repository at this point in the history
Amended createItemFromResult to fire on mousedown rather than click, preventing a prolonged mouse click from hiding the autocomplete dropdown and not updating the text input.
  • Loading branch information
westleyknight committed Feb 19, 2013
1 parent ffe8af1 commit 6296da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@
var self = this;
var $li = $('<li>' + this.showResult(result.value, result.data) + '</li>');
$li.data({value: result.value, data: result.data})
.click(function() {
.mousedown(function() {
self.selectItem($li);
})
.mousedown(self.disableFinishOnBlur)
Expand Down

0 comments on commit 6296da9

Please sign in to comment.