Skip to content

Commit 6840ce8

Browse files
author
Trevor Parker
committed
Only invalidate when value is actually changed
1 parent b6d3f75 commit 6840ce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.autocomplete.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@
443443
query = that.getQuery(value),
444444
index;
445445

446-
if (that.selection) {
446+
if (that.selection && that.currentValue != query) {
447447
that.selection = null;
448448
(options.onInvalidateSelection || $.noop).call(that.element);
449449
}

0 commit comments

Comments
 (0)