From 95f4750932cebf2916ec322b3b7420bee6729657 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 12 May 2024 11:23:05 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/11355 --- app/src/protyle/util/table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts index 2ab889fb0..c19409e99 100644 --- a/app/src/protyle/util/table.ts +++ b/app/src/protyle/util/table.ts @@ -404,6 +404,7 @@ export const fixTable = (protyle: IProtyle, event: KeyboardEvent, range: Range) const trElement = cellElement.parentElement as HTMLTableRowElement; if ((!trElement.nextElementSibling && trElement.parentElement.tagName === "TBODY") || (trElement.parentElement.tagName === "THEAD" && !trElement.parentElement.nextElementSibling)) { + insertEmptyBlock(protyle, "afterend", nodeElement.getAttribute("data-node-id")); return true; } let nextElement = trElement.nextElementSibling as HTMLTableRowElement;