2
0
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:
Tomas Kirda 2015-09-16 10:48:20 -05:00
parent d2cd54a2d8
commit 082248691f

View File

@ -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);
},