Vanessa 2025-08-22 19:05:17 +08:00
parent c92240a085
commit 8a6922b56f

View file

@ -199,7 +199,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
return true; return true;
} else if (target.classList.contains("b3-menu__avemoji") && !protyle.disabled) { } else if (target.classList.contains("b3-menu__avemoji") && !protyle.disabled) {
const rect = target.getBoundingClientRect(); const rect = target.getBoundingClientRect();
openEmojiPanel(target.parentElement.getAttribute("data-block-id"), "doc", { openEmojiPanel(target.nextElementSibling.getAttribute("data-id"), "doc", {
x: rect.left, x: rect.left,
y: rect.bottom, y: rect.bottom,
h: rect.height, h: rect.height,