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.
This commit is contained in:
jordi fita mas 2023-04-11 10:24:40 +02:00
parent 3b568b013f
commit 1290fc7283
1 changed files with 2 additions and 1 deletions

View File

@ -423,7 +423,8 @@ class Tags extends HTMLDivElement {
button.textContent = '×'; button.textContent = '×';
button.addEventListener('click', (e) => { button.addEventListener('click', (e) => {
e.stopPropagation(); e.stopPropagation();
this.removeTag(tagText) this.removeTag(tagText);
this.search.focus();
}); });
} }
} }