mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
This commit is contained in:
parent
d039974e03
commit
b38ceff4cd
1 changed files with 2 additions and 1 deletions
|
|
@ -313,7 +313,8 @@ export const openEmojiPanel = (id: string, target: HTMLElement, isNotebook = fal
|
|||
inputElement.focus();
|
||||
}
|
||||
lazyLoadEmoji(window.siyuan.menus.menu.element);
|
||||
window.siyuan.menus.menu.element.firstElementChild.addEventListener(getEventName(), (event) => {
|
||||
// 不能使用 getEventName 否则 https://github.com/siyuan-note/siyuan/issues/5472
|
||||
window.siyuan.menus.menu.element.firstElementChild.addEventListener("click", (event) => {
|
||||
const eventTarget = event.target as HTMLElement;
|
||||
const typeElement = hasClosestByClassName(eventTarget, "emojis__type");
|
||||
if (typeElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue