This commit is contained in:
Vanessa 2023-06-11 23:24:26 +08:00
parent a94dc72bf7
commit ae336e9f36
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ export const avRender = (element: Element, cb?: () => void) => {
export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
if (operation.action === "addAttrViewCol") {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-node-id="${operation.id}"]`)).forEach((item: HTMLElement) => {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.parentID}"]`)).forEach((item: HTMLElement) => {
item.removeAttribute("data-render");
avRender(item, () => {
showHeaderCellMenu(protyle, item, item.querySelector(".av__row--header").lastElementChild.previousElementSibling as HTMLElement);