Catch and wrap new tags dropdowns inside fancy tags editor

This commit is contained in:
koloml committed 2024-11-12 14:19:53 +04:00
1 parent e83d70fbd9
commit 5092dc7f6d
2 files changed
+37 -1

No files matched your search

+3 -1
View File
@@ -1,5 +1,7 @@
import {wrapTagDropdown} from "$lib/components/TagDropdownWrapper.js";
import {watchTagDropdownsInTagsEditor, wrapTagDropdown} from "$lib/components/TagDropdownWrapper.js";
for (let tagDropdownElement of document.querySelectorAll('.tag.dropdown')) {
wrapTagDropdown(tagDropdownElement);
}
watchTagDropdownsInTagsEditor();