Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Keep custom emoji page active when clicking group names https://github.com/siyuan-note/siyuan/issues/13563

Daniel3accdd5964e8
diff --git a/app/src/emoji/index.ts b/app/src/emoji/index.ts
index 6a0e6d08af..41dd480049 100644
--- a/app/src/emoji/index.ts
+++ b/app/src/emoji/index.ts
@@ -1420,7 +1420,7 @@ export const openEmojiPanel = (
}
addEmoji(unicode);
break;
- } else if (target.getAttribute("data-type")?.startsWith("tab-")) {
+ } else if (target.matches(".emojis__tabheader > [data-type^='tab-']")) {
dialogElement.querySelectorAll('.emojis__tabheader [data-type|="tab"]').forEach((item: HTMLElement) => {
if (item.dataset.type === target.dataset.type) {
item.classList.add("block__icon--active");