mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🐛 Fix rootID reference in Title component
This commit is contained in:
parent
24c29739fc
commit
b2b5edb05e
1 changed files with 4 additions and 3 deletions
|
|
@ -360,14 +360,15 @@ export class Title {
|
||||||
this.element.classList.remove("fn__none");
|
this.element.classList.remove("fn__none");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) {
|
const rootID = response.data.rootID;
|
||||||
|
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === rootID) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.element.setAttribute("data-node-id", protyle.block.rootID);
|
this.element.setAttribute("data-node-id", rootID);
|
||||||
if (response.data.ial[Constants.CUSTOM_RIFF_DECKS]) {
|
if (response.data.ial[Constants.CUSTOM_RIFF_DECKS]) {
|
||||||
this.element.setAttribute(Constants.CUSTOM_RIFF_DECKS, response.data.ial[Constants.CUSTOM_RIFF_DECKS]);
|
this.element.setAttribute(Constants.CUSTOM_RIFF_DECKS, response.data.ial[Constants.CUSTOM_RIFF_DECKS]);
|
||||||
}
|
}
|
||||||
protyle.background?.render(response.data.ial, protyle.block.rootID);
|
protyle.background?.render(response.data.ial, rootID);
|
||||||
protyle.wysiwyg.renderCustom(response.data.ial);
|
protyle.wysiwyg.renderCustom(response.data.ial);
|
||||||
this.element.setAttribute("data-render", "true");
|
this.element.setAttribute("data-render", "true");
|
||||||
this.setTitle(response.data.ial.title);
|
this.setTitle(response.data.ial.title);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue