diff --git a/tags.js b/tags.js index e363942..296a47a 100644 --- a/tags.js +++ b/tags.js @@ -465,7 +465,10 @@ class Tags { if (this.allowClear) { span.querySelector("button").addEventListener("click", (event) => { + event.preventDefault(); + event.stopPropagation(); this.removeItem(value); + document.activeElement.blur(); }); }