mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 15:08:00 +01:00
Clearing the input after successfully removing the tag
This commit is contained in:
parent
5c8ae5f54b
commit
3a4b240c3e
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue