1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-24 07:12:57 +00:00

Fixed missed re-initialization of tags list after tag form was submitted

This commit is contained in:
2025-03-26 20:43:19 +04:00
parent d5ad66d902
commit 6586141134

View File

@@ -196,6 +196,13 @@ export function initializeAllTagsLists() {
export function watchForUpdatedTagLists() {
on(document, eventFormEditorUpdated, event => {
event.detail.closest('#image_tags_and_source')
const tagsListElement = event.detail.closest<HTMLElement>('#image_tags_and_source');
if (!tagsListElement || getComponent(tagsListElement)) {
return;
}
new TagsListBlock(tagsListElement)
.initialize();
});
}