Vanessa 2026-01-02 11:22:31 +08:00
parent 276282815b
commit 7161d4baeb

View file

@ -439,7 +439,6 @@ export const openEmojiPanel = (
icon: unicode
}, () => {
dialog.destroy();
addEmoji(unicode);
updateFileTreeEmoji(unicode, id, "iconFilesRoot");
});
} else if (type === "doc") {
@ -448,7 +447,6 @@ export const openEmojiPanel = (
attrs: {"icon": unicode}
}, () => {
dialog.destroy();
addEmoji(unicode);
updateFileTreeEmoji(unicode, id);
updateOutlineEmoji(unicode, id);
});
@ -456,6 +454,7 @@ export const openEmojiPanel = (
if (callback) {
callback(unicode);
}
addEmoji(unicode);
event.preventDefault();
event.stopPropagation();
return;
@ -595,7 +594,6 @@ export const openEmojiPanel = (
notebook: id,
icon: unicode
}, () => {
addEmoji(unicode);
updateFileTreeEmoji(unicode, id, "iconFilesRoot");
});
} else if (type === "doc") {
@ -603,7 +601,6 @@ export const openEmojiPanel = (
id,
attrs: {"icon": unicode}
}, () => {
addEmoji(unicode);
updateFileTreeEmoji(unicode, id);
updateOutlineEmoji(unicode, id);
@ -612,6 +609,7 @@ export const openEmojiPanel = (
if (callback) {
callback(unicode);
}
addEmoji(unicode);
break;
} else if (target.getAttribute("data-type")?.startsWith("tab-")) {
dialogElement.querySelectorAll('.emojis__tabheader [data-type|="tab"]').forEach((item: HTMLElement) => {