From 1290fc728359b251d314e38ab0d2f3cd8eb58c53 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 11 Apr 2023 10:24:40 +0200 Subject: [PATCH] Set the focus back to the search input when removing a tag The idea is that if they removed a tag it is more that possible that they want to continue editing tags. --- web/static/numerus.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/static/numerus.js b/web/static/numerus.js index 21a84f6..c366cfe 100644 --- a/web/static/numerus.js +++ b/web/static/numerus.js @@ -423,7 +423,8 @@ class Tags extends HTMLDivElement { button.textContent = '×'; button.addEventListener('click', (e) => { e.stopPropagation(); - this.removeTag(tagText) + this.removeTag(tagText); + this.search.focus(); }); } }