Vanessa 2025-09-26 17:30:43 +08:00
parent 81736521ba
commit b29a487366

View file

@ -761,6 +761,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
return; return;
} }
} }
const hasGhost = item.querySelector('[data-type="ghost"]');
avRender(item, protyle, () => { avRender(item, protyle, () => {
const attrElement = document.querySelector(`.b3-dialog--open[data-key="${Constants.DIALOG_ATTR}"] .custom-attr > [data-av-id="${avID}"]`) as HTMLElement; const attrElement = document.querySelector(`.b3-dialog--open[data-key="${Constants.DIALOG_ATTR}"] .custom-attr > [data-av-id="${avID}"]`) as HTMLElement;
if (attrElement) { if (attrElement) {
@ -791,7 +792,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
} }
if (popCellElement && popCellElement.getAttribute("data-detached") === "true" && if (popCellElement && popCellElement.getAttribute("data-detached") === "true" &&
popCellElement.querySelector(".av__celltext").textContent === "" && popCellElement.querySelector(".av__celltext").textContent === "" &&
popCellElement.getBoundingClientRect().height !== 0) { popCellElement.getBoundingClientRect().height !== 0 && hasGhost) {
popTextCell(protyle, [popCellElement], "block"); popTextCell(protyle, [popCellElement], "block");
} }
} }