mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
c64214e754
commit
5abc9c31b0
1 changed files with 7 additions and 1 deletions
|
|
@ -728,7 +728,13 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (operation.srcs.length === 1) {
|
if (operation.srcs.length === 1) {
|
||||||
const popCellElement = item.querySelector(`.av__body${groupQuery} [data-id="${operation.srcs[0].itemID}"] .av__cell[data-dtype="block"]`) as HTMLElement;
|
let popCellElement = item.querySelector(`.av__body${groupQuery} [data-id="${operation.srcs[0].itemID}"] .av__cell[data-dtype="block"]`) as HTMLElement;
|
||||||
|
if (!popCellElement) {
|
||||||
|
const popCellElements = item.querySelectorAll(`.av__body [data-id="${operation.srcs[0].itemID}"] .av__cell[data-dtype="block"]`);
|
||||||
|
if (popCellElements.length === 1) {
|
||||||
|
popCellElement = popCellElements[0] as HTMLElement;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (popCellElement && popCellElement.getAttribute("data-detached") === "true") {
|
if (popCellElement && popCellElement.getAttribute("data-detached") === "true") {
|
||||||
popTextCell(protyle, [popCellElement], "block");
|
popTextCell(protyle, [popCellElement], "block");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue