2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-11-22 04:45:12 +00:00

Don't update element value if it is the same. Fixes #182

This commit is contained in:
Tomas Kirda 2014-04-13 12:25:26 -05:00
parent 702bc0e9c3
commit ab157017f2

View File

@ -760,7 +760,11 @@
suggestion = that.suggestions[index];
that.currentValue = that.getValue(suggestion.value);
that.el.val(that.currentValue);
if (that.currentValue !== that.el.val()) {
that.el.val(that.currentValue);
}
that.signalHint(null);
that.suggestions = [];
that.selection = suggestion;