This commit is contained in:
parent
38bb1a6507
commit
37919252ec
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue