mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
f660b2ddfa
commit
a83b9ee114
1 changed files with 2 additions and 1 deletions
|
|
@ -621,7 +621,8 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||
}, 450);
|
||||
}
|
||||
});
|
||||
const attrElement = item.querySelector(".protyle-attr");
|
||||
const attrElements = item.querySelectorAll(".protyle-attr");
|
||||
const attrElement = attrElements[attrElements.length - 1];
|
||||
if (data.new["custom-avs"] && !data.new["av-names"]) {
|
||||
nodeAttrHTML += attrElement.querySelector(".protyle-attr--av")?.outerHTML || "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue