This commit is contained in:
parent
ff525d5f06
commit
886b5fdc8c
1 changed files with 2 additions and 2 deletions
|
@ -419,13 +419,13 @@ export class Backlink extends Model {
|
|||
if (svgElement.classList.contains("b3-list-item__arrow--open")) {
|
||||
svgElement.classList.remove("b3-list-item__arrow--open");
|
||||
this.editors.find((item, index) => {
|
||||
if (item.protyle.block.rootID === docId) {
|
||||
if (item.protyle.block.rootID === docId && liElement.nextElementSibling && item.protyle.element.isSameNode(liElement.nextElementSibling)) {
|
||||
item.destroy();
|
||||
this.editors.splice(index, 1);
|
||||
liElement.nextElementSibling.remove();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
liElement.nextElementSibling?.remove();
|
||||
svgElement.removeAttribute("disabled");
|
||||
} else {
|
||||
fetchPost(isMention ? "/api/ref/getBackmentionDoc" : "/api/ref/getBacklinkDoc", {
|
||||
|
|
Loading…
Add table
Reference in a new issue