Skip to content

Commit 43b2953

Browse files
author
Tomas Kirda
committed
Rev for 1.4.10 release
1 parent e5df065 commit 43b2953

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.9",
3+
"version": "1.4.10",
44
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
55
"authors": [
66
"Tomas Kirda"

devbridge-autocomplete.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"ajax",
77
"autocomplete"
88
],
9-
"version": "1.4.9",
9+
"version": "1.4.10",
1010
"author": {
1111
"name": "Tomas Kirda",
1212
"url": "https://github.com/tkirda"

dist/jquery.autocomplete.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Ajax Autocomplete for jQuery, version 1.4.9
2+
* Ajax Autocomplete for jQuery, version 1.4.10
33
* (c) 2017 Tomas Kirda
44
*
55
* Ajax Autocomplete for jQuery is freely distributable under the terms of an MIT-style license.
@@ -36,7 +36,6 @@
3636
div.className = containerClass;
3737
div.style.position = 'absolute';
3838
div.style.display = 'none';
39-
div.setAttribute('unselectable','on');
4039
return div;
4140
}
4241
};
@@ -228,12 +227,19 @@
228227
},
229228

230229
onBlur: function () {
231-
var that = this;
230+
var that = this,
231+
options = that.options,
232+
value = that.el.val(),
233+
query = that.getQuery(value);
232234

233235
// If user clicked on a suggestion, hide() will
234236
// be canceled, otherwise close suggestions
235237
that.blurTimeoutId = setTimeout(function () {
236238
that.hide();
239+
240+
if (that.selection && that.currentValue !== query) {
241+
(options.onInvalidateSelection || $.noop).call(that.element);
242+
}
237243
}, 200);
238244
},
239245

dist/jquery.autocomplete.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devbridge-autocomplete",
3-
"version": "1.4.9",
3+
"version": "1.4.10",
44
"description": "Autocomplete provides suggestions while you type into the text field.",
55
"homepage": "https://github.com/devbridge/jQuery-Autocomplete",
66
"author": "Tomas Kirda (https://twitter.com/tkirda)",

0 commit comments

Comments
 (0)