Vanessa 2023-10-13 23:50:31 +08:00
parent 49305b8911
commit 51f66879cc
2 changed files with 4 additions and 5 deletions

View file

@ -254,7 +254,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
});
});
} else if (operation.action === "setAttrViewName") {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.id}"]`)).forEach((item: HTMLElement) => {
const titleElement = item.querySelector(".av__title") as HTMLElement;
if (!titleElement || titleElement.textContent.trim() === operation.data) {
return;