From 452b7dddb9165e694fe99e9dbe16f38da3e0059c Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 16 Jul 2023 23:19:58 +0800 Subject: [PATCH] :sparkles: https://github.com/siyuan-note/siyuan/issues/8769 --- app/src/protyle/render/av/action.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 675e597fc..40425819b 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -201,11 +201,12 @@ export const avContextmenu = (protyle: IProtyle, event: MouseEvent & { detail: a }); } const editAttrSubmenu: IMenu[] = []; - rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement) => { + rowElement.parentElement.querySelectorAll(".av__row--header .av__cell").forEach((cellElement: HTMLElement) => { editAttrSubmenu.push({ icon: getColIconByType(cellElement.getAttribute("data-dtype") as TAVCol), label: cellElement.textContent.trim(), click() { + popTextCell(protyle, rowElement.querySelector(`.av__cell[data-col-id="${cellElement.dataset.colId}"]`)); } }); }); @@ -242,7 +243,7 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => { transaction(protyle, [{ action: "setAttrViewName", id: avId, - data: nameElement.textContent.trim(), + data: nameElement.textContent.trim(), }], [{ action: "setAttrViewName", id: avId,