From 1964305b6295788634a0973b6fa9514732558bdd Mon Sep 17 00:00:00 2001 From: Dax Gama Date: Mon, 16 Oct 2017 13:41:37 +1100 Subject: [PATCH] Update auto-complete.js --- auto-complete.js | 1 + 1 file changed, 1 insertion(+) diff --git a/auto-complete.js b/auto-complete.js index 2f5a88c..48ddbcc 100644 --- a/auto-complete.js +++ b/auto-complete.js @@ -62,6 +62,7 @@ var autoComplete = (function(){ that.last_val = ''; that.updateSC = function(resize, next){ + if(that != document.activeElement) return; var rect = that.getBoundingClientRect(); that.sc.style.left = Math.round(rect.left + (window.pageXOffset || document.documentElement.scrollLeft) + o.offsetLeft) + 'px'; that.sc.style.top = Math.round(rect.bottom + (window.pageYOffset || document.documentElement.scrollTop) + o.offsetTop) + 'px';