Vanessa 2025-09-08 10:06:52 +08:00
parent adca241ed5
commit c1f14a33d9

View file

@ -291,14 +291,6 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
/// #endif
}
this.element.scrollTop = 0;
let currentHintElement = this.element.querySelector(".b3-list-item--focus") as HTMLElement;
if (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?.classList.add("b3-list-item--focus");
}
this.bindUploadEvent(protyle, this.element);
if (this.source !== "hint") {
const searchElement = this.element.querySelector("input.b3-text-field") as HTMLInputElement;