mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
This commit is contained in:
parent
6903f065d2
commit
8c4487fe84
1 changed files with 3 additions and 0 deletions
|
|
@ -617,6 +617,9 @@ export class Outline extends Model {
|
|||
item.classList.remove("b3-list-item--focus");
|
||||
});
|
||||
let currentElement = this.element.querySelector(`.b3-list-item[data-node-id="${id}"]`) as HTMLElement;
|
||||
if (!currentElement) {
|
||||
return;
|
||||
}
|
||||
if (window.siyuan.storage[Constants.LOCAL_OUTLINE].keepCurrentExpand) {
|
||||
let ulElement = currentElement.parentElement;
|
||||
while (ulElement && !ulElement.classList.contains("b3-list") && ulElement.tagName === "UL") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue