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

Merge pull request #229 from ResultsMayVary/master

Only invalidate when value is actually changed
This commit is contained in:
Tomas Kirda 2014-08-26 13:44:17 -05:00
commit 17c665557b

View File

@ -446,7 +446,7 @@
query = that.getQuery(value), query = that.getQuery(value),
index; index;
if (that.selection) { if (that.selection && that.currentValue != query) {
that.selection = null; that.selection = null;
(options.onInvalidateSelection || $.noop).call(that.element); (options.onInvalidateSelection || $.noop).call(that.element);
} }