From 5b963b441c94dd83bf38f374504518070ad86683 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Thu, 22 Apr 2021 10:02:15 -0400 Subject: [PATCH] Focus search input after clearing w/ reset btn See #291 --- app/static/js/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/static/js/utils.js b/app/static/js/utils.js index 3cf4a5d..d13bac9 100644 --- a/app/static/js/utils.js +++ b/app/static/js/utils.js @@ -64,5 +64,6 @@ document.addEventListener("DOMContentLoaded", function() { resetBtn.addEventListener("click", event => { event.preventDefault(); search.value = ""; + search.focus(); }); });