This commit is contained in:
Vanessa 2023-07-04 09:20:55 +08:00
parent ed258564e7
commit 6fa7364067
4 changed files with 16 additions and 16 deletions

View file

@ -137,7 +137,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
}
lastElement = protyle.contentElement;
lastParentID = operation.parentID;
const avId = operation.action === "setAttrView" ? operation.id : operation.parentID
const avId = operation.action === "setAttrView" ? operation.id : operation.parentID;
if (operation.action === "addAttrViewCol") {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
item.removeAttribute("data-render");