mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +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;
|
this.element.scrollTop = 0;
|
||||||
let currentHintElement = this.element.querySelector(".b3-list-item--focus") as HTMLElement;
|
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");
|
currentHintElement.classList.remove("b3-list-item--focus");
|
||||||
do {
|
currentHintElement = currentHintElement.nextElementSibling as HTMLElement;
|
||||||
currentHintElement = currentHintElement.nextElementSibling as HTMLElement;
|
|
||||||
} while (isAbnormalItem(currentHintElement, "b3-list-item"));
|
|
||||||
currentHintElement?.classList.add("b3-list-item--focus");
|
currentHintElement?.classList.add("b3-list-item--focus");
|
||||||
}
|
}
|
||||||
this.bindUploadEvent(protyle, this.element);
|
this.bindUploadEvent(protyle, this.element);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue