diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 6bb7e5f52..f88f1dbc2 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1224,10 +1224,9 @@ export class Toolbar { if (inputElement.value.trim() && !matchInput) { html = `
${inputElement.value.replace(/`| /g, "_")}
${html}`; } + html = `
${window.siyuan.languages.clear}
` + html; this.subElement.firstElementChild.lastElementChild.innerHTML = html; - if (html) { - this.subElement.firstElementChild.lastElementChild.firstElementChild.classList.add("b3-list-item--focus"); - } + this.subElement.firstElementChild.lastElementChild.firstElementChild.classList.add("b3-list-item--focus"); event.stopPropagation(); }); this.subElement.lastElementChild.lastElementChild.addEventListener("click", (event) => {