mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +01:00
This commit is contained in:
parent
be2ea06b2f
commit
714557550c
1 changed files with 1 additions and 1 deletions
|
|
@ -1183,7 +1183,7 @@ const genUpdateColItem = (type: TAVCol, oldType: TAVCol) => {
|
|||
export const addCol = (protyle: IProtyle, blockElement: Element, previousID?: string) => {
|
||||
const menu = new Menu("av-header-add");
|
||||
const avID = blockElement.getAttribute("data-av-id");
|
||||
if (typeof previousID === "undefined") {
|
||||
if (typeof previousID === "undefined" && blockElement.getAttribute("data-av-type") === "table") {
|
||||
previousID = Array.from(blockElement.querySelectorAll(".av__row--header .av__cell")).pop().getAttribute("data-col-id");
|
||||
}
|
||||
const blockId = blockElement.getAttribute("data-node-id");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue