From bb2717a3b911ba1a5912b1af5098c9b42e9b946c Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 6 Dec 2020 19:44:36 +0530 Subject: [PATCH] search: fix redundant results after clearing searchbox --- assets/js/fastsearch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/fastsearch.js b/assets/js/fastsearch.js index 3261c15..357867b 100644 --- a/assets/js/fastsearch.js +++ b/assets/js/fastsearch.js @@ -49,6 +49,8 @@ document.getElementById("searchInput").onkeyup = function (e) { } document.getElementById("searchResults").innerHTML = resultSet; + } else { + document.getElementById("searchResults").innerHTML = ''; } }