mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
e259626ce5
commit
60164eb9e3
1 changed files with 2 additions and 4 deletions
|
|
@ -291,11 +291,9 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
|
|||
}
|
||||
this.element.scrollTop = 0;
|
||||
let currentHintElement = this.element.querySelector(".b3-list-item--focus") as HTMLElement;
|
||||
if (isAbnormalItem(currentHintElement, "b3-list-item")) {
|
||||
while (isAbnormalItem(currentHintElement, "b3-list-item")) {
|
||||
currentHintElement.classList.remove("b3-list-item--focus");
|
||||
do {
|
||||
currentHintElement = currentHintElement.nextElementSibling as HTMLElement;
|
||||
} while (isAbnormalItem(currentHintElement, "b3-list-item"));
|
||||
currentHintElement = currentHintElement.nextElementSibling as HTMLElement;
|
||||
currentHintElement?.classList.add("b3-list-item--focus");
|
||||
}
|
||||
this.bindUploadEvent(protyle, this.element);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue