From 37919252ec085690b97c53c549626f8d1e88e2d7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 29 Dec 2023 10:02:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9993 --- app/src/protyle/render/av/col.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index b2810f7a1..227871d3a 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -767,7 +767,7 @@ export const addCol = (protyle: IProtyle, blockElement: Element, previousID?: st const menu = new Menu("av-header-add"); const avID = blockElement.getAttribute("data-av-id"); if (typeof previousID === "undefined") { - previousID = blockElement.querySelector(".av__row--header .av__cell:last-child").getAttribute("data-col-id"); + previousID = Array.from(blockElement.querySelectorAll(".av__row--header .av__cell")).pop().getAttribute("data-col-id"); } menu.addItem({ icon: "iconAlignLeft",