From 6840ce8e539f59614b29dede0b0613796eae6aa6 Mon Sep 17 00:00:00 2001 From: Trevor Parker Date: Tue, 26 Aug 2014 13:33:44 -0400 Subject: [PATCH] Only invalidate when value is actually changed --- src/jquery.autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.autocomplete.js b/src/jquery.autocomplete.js index 3fa3a4f..147a47b 100644 --- a/src/jquery.autocomplete.js +++ b/src/jquery.autocomplete.js @@ -443,7 +443,7 @@ query = that.getQuery(value), index; - if (that.selection) { + if (that.selection && that.currentValue != query) { that.selection = null; (options.onInvalidateSelection || $.noop).call(that.element); }