mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
81736521ba
commit
b29a487366
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue