Clearing the input after successfully removing the tag

This commit is contained in:
KoloMl 2024-12-14 23:57:20 +04:00
parent 5c8ae5f54b
commit 3a4b240c3e

View file

@ -112,7 +112,10 @@ export function setupTagsInput(tagBlock: HTMLDivElement) {
name = name.slice(1); // eslint-disable-line no-param-reassign name = name.slice(1); // eslint-disable-line no-param-reassign
const tagLink = assertNotNull($(`[data-tag-name="${escapeCss(name)}"]`, container)); const tagLink = assertNotNull($(`[data-tag-name="${escapeCss(name)}"]`, container));
return removeTag(name, assertNotNull(tagLink.parentElement)); removeTag(name, assertNotNull(tagLink.parentElement));
inputField.value = '';
return;
} }
tags.push(name); tags.push(name);