From 16d982d55798d661e76f6dcd4f8e945760579232 Mon Sep 17 00:00:00 2001 From: Alex Gusev Date: Tue, 2 May 2023 14:01:38 +0600 Subject: [PATCH] Save 1 click after clearing search field --- javascripts/search.js | 1 + 1 file changed, 1 insertion(+) diff --git a/javascripts/search.js b/javascripts/search.js index 9f9119e..e09fc75 100644 --- a/javascripts/search.js +++ b/javascripts/search.js @@ -41,6 +41,7 @@ document.addEventListener('click', event => { search(filter.value) } else if (event.target.classList.contains('js-clear-search')) { filter.value = '' + filter.focus() } })