mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
0bec8594a1
commit
d175cda07d
1 changed files with 5 additions and 1 deletions
|
|
@ -1431,7 +1431,11 @@ ${countHTML}
|
|||
const currentList = element.querySelector(`[data-node-id="${currentData.id}"]`) as HTMLElement;
|
||||
if (currentList) {
|
||||
currentList.classList.add("b3-list-item--focus");
|
||||
currentList.scrollIntoView();
|
||||
if (!currentList.previousElementSibling && currentList.parentElement.previousElementSibling) {
|
||||
currentList.parentElement.previousElementSibling.scrollIntoView();
|
||||
} else {
|
||||
currentList.scrollIntoView();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue