Fix tags bug

This commit is contained in:
Leonabcd123 2025-12-19 12:44:29 +02:00
parent d7bbd3ccb2
commit 82eaa84209

View file

@ -796,7 +796,7 @@ qs(".pageSettings .section.tags")?.onChild(
"click",
".tagsList .tag .tagButton",
(e) => {
const target = e.currentTarget as HTMLElement;
const target = e.target as HTMLElement;
const tagid = target.parentElement?.getAttribute("data-id") as string;
TagController.toggle(tagid);
target.classList.toggle("active");