diff --git a/web/static/numerus.js b/web/static/numerus.js index 9cf075f..21a84f6 100644 --- a/web/static/numerus.js +++ b/web/static/numerus.js @@ -73,7 +73,7 @@ class Multiselect extends HTMLDivElement { } window.addEventListener('focusin', this.onFocusOutHandler); document.addEventListener('click', this.onFocusOutHandler); - + this.rebuild() } } @@ -345,7 +345,7 @@ class Tags extends HTMLDivElement { this.search.addEventListener('keydown', this.onSearchKeydownHandler); this.onFocusOutHandler = (e) => { if (this.contains(e.target)) return; - if (e.target.value && e.target.value.trim() !== '') { + if (this.search.value && this.search.value.trim() !== '') { this.createTag(); } };