From 512924af6985ede69a79dc06f731129ba22b6ce5 Mon Sep 17 00:00:00 2001 From: Cade Scroggins Date: Thu, 29 Jun 2017 00:04:40 -0700 Subject: [PATCH] small optimization --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 3ed2eb8..494e4f9 100644 --- a/index.html +++ b/index.html @@ -704,7 +704,7 @@ _handleKeyup(event) { const oldVal = this._inputElVal; const newVal = this._inputEl.value.trim(); - this._inputElVal = this._inputEl.value; + this._inputElVal = newVal; if (CONFIG.suggestions && oldVal !== newVal) { this._suggester.suggest(newVal, this._submitWithValue);