mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user