2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 12:55:12 +00:00

Update jquery.autocomplete.js

This commit is contained in:
719media 2017-04-19 15:09:21 -07:00 committed by GitHub
parent 63b5d6e3a2
commit 67d4b7d750

View File

@ -198,8 +198,8 @@
that.select($(this).data('index')); that.select($(this).data('index'));
}); });
container.on('mousedown.autocomplete', function () { container.on('mousedown.autocomplete', function (e) {
clearTimeout(that.blurTimeoutId); e.preventDefault();
}) })
that.fixPositionCapture = function () { that.fixPositionCapture = function () {
@ -229,13 +229,7 @@
}, },
onBlur: function () { onBlur: function () {
var that = this; this.hide();
// If user clicked on a suggestion, hide() will
// be canceled, otherwise close suggestions
that.blurTimeoutId = setTimeout(function () {
that.hide();
}, 200);
}, },
abortAjax: function () { abortAjax: function () {