diff --git a/web/static/numerus.js b/web/static/numerus.js index 3aea63b..86b7c23 100644 --- a/web/static/numerus.js +++ b/web/static/numerus.js @@ -339,6 +339,12 @@ class Tags extends HTMLDivElement { break; } }); + window.addEventListener('focusin', (e) => { + if (this.contains(e.target)) return; + if (e.target.value.trim() !== '') { + this.createTag(); + } + }); // Must come after the search input this.tagList.append(this.label);