From 7aa3a8cd79106b8f1a6ba8a15ce1489b0851ffdc Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 17 Dec 2023 15:12:43 +0200 Subject: [PATCH] docs: update search --- docs/assets/js/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/assets/js/search.js b/docs/assets/js/search.js index 5f7af4a12f..ab4ee541e3 100644 --- a/docs/assets/js/search.js +++ b/docs/assets/js/search.js @@ -25,10 +25,10 @@ import Fuse from 'fuse.js' function search(searchTerm) { const trimmedSearchTerm = searchTerm ? searchTerm.trim() : '' - const searchResult = fuse.search(trimmedSearchTerm) iconListContainer.innerHTML = '' if (trimmedSearchTerm.length > 0) { + const searchResult = fuse.search(trimmedSearchTerm) const resultElements = searchResult.map(result => iconElementList[result.refIndex]) iconListContainer.append(...resultElements) } else {