mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-26 06:46:32 +00:00
No need to restore value when preserveInput is set to true, fixes #521
This commit is contained in:
parent
0068bf02ed
commit
25de88ee6b
@ -354,7 +354,13 @@
|
|||||||
that.stopKillSuggestions();
|
that.stopKillSuggestions();
|
||||||
that.intervalId = window.setInterval(function () {
|
that.intervalId = window.setInterval(function () {
|
||||||
if (that.visible) {
|
if (that.visible) {
|
||||||
that.el.val(that.currentValue);
|
// No need to restore value when
|
||||||
|
// preserveInput === true,
|
||||||
|
// because we did not change it
|
||||||
|
if (!that.options.preserveInput) {
|
||||||
|
that.el.val(that.currentValue);
|
||||||
|
}
|
||||||
|
|
||||||
that.hide();
|
that.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user