mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-11 11:18:50 +01:00
This commit is contained in:
parent
276282815b
commit
7161d4baeb
1 changed files with 2 additions and 4 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue