mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-12-23 11:28:53 +00:00
Only invalidate when value is actually changed
This commit is contained in:
parent
b6d3f75bbe
commit
6840ce8e53
@ -443,7 +443,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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user