Skip to content

Commit 26f2c87

Browse files
author
Tomas Kirda
committed
Clear onChangeInterval when disabling or hiding suggestions. Fixes #238
1 parent d3e62d9 commit 26f2c87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jquery.autocomplete.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
247247
disable: function () {
248248
var that = this;
249249
that.disabled = true;
250+
clearInterval(that.onChangeInterval);
250251
if (that.currentRequest) {
251252
that.currentRequest.abort();
252253
}
@@ -595,6 +596,7 @@
595596
var that = this;
596597
that.visible = false;
597598
that.selectedIndex = -1;
599+
clearInterval(that.onChangeInterval);
598600
$(that.suggestionsContainer).hide();
599601
that.signalHint(null);
600602
},

0 commit comments

Comments
 (0)