From b5df43cfbf61895c9b78a419852da472128965eb Mon Sep 17 00:00:00 2001 From: nietonfir Date: Sun, 9 Jul 2017 22:57:19 +0200 Subject: [PATCH] Update the icon state as well if the search box is emptied --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 294419ed..e893bd07 100644 --- a/index.html +++ b/index.html @@ -538,10 +538,10 @@ var value = e.target.value; if (value) { $search.classList.add('search--active'); - search(value); } else { $search.classList.remove('search--active'); } + search(value); }, 250), false); $searchClose.addEventListener('click', function(e) { e.stopPropagation();