mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-09 23:01:00 +00:00
Only restore currentValue if suggestions are visible, fixes #408
This commit is contained in:
parent
d2cd54a2d8
commit
082248691f
@ -346,8 +346,11 @@
|
||||
var that = this;
|
||||
that.stopKillSuggestions();
|
||||
that.intervalId = window.setInterval(function () {
|
||||
if (that.visible) {
|
||||
that.el.val(that.currentValue);
|
||||
that.hide();
|
||||
}
|
||||
|
||||
that.stopKillSuggestions();
|
||||
}, 50);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user