Skip to content

Commit

Permalink
🎨 fix #11355
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 12, 2024
1 parent 636352d commit 95f4750
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/protyle/util/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 95f4750

Please sign in to comment.