mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 14:50:57 +00:00
Merge pull request #229 from ResultsMayVary/master
Only invalidate when value is actually changed
This commit is contained in:
commit
17c665557b
@ -446,7 +446,7 @@
|
||||
query = that.getQuery(value),
|
||||
index;
|
||||
|
||||
if (that.selection) {
|
||||
if (that.selection && that.currentValue != query) {
|
||||
that.selection = null;
|
||||
(options.onInvalidateSelection || $.noop).call(that.element);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user