From 021e09e444dee5dbb6c36b69bb531f3f80142485 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 12 Sep 2023 17:58:03 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9169 --- app/src/protyle/toolbar/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) => {