Fix bogus entry that appears when switching with arrow keys

This commit is contained in:
Vincent Petry 2015-09-22 17:16:20 +02:00
parent 498e8f712c
commit 03ca76f54f
1 changed files with 3 additions and 0 deletions

View File

@ -176,6 +176,9 @@
$shareField.autocomplete({
minLength: 2,
delay: 750,
focus: function(event) {
event.preventDefault();
},
source: this.autocompleteHandler,
select: this._onSelectRecipient
}).data('ui-autocomplete')._renderItem = this.autocompleteRenderItem;