Vanessa 2025-06-02 22:51:00 +08:00
parent f660b2ddfa
commit a83b9ee114

View file

@ -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 || "";
}