diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 772385d46..a7bcf8330 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1291,7 +1291,7 @@ export class Toolbar { } html = `
${window.siyuan.languages.clear}
` + html; listElement.innerHTML = html; - if (listElement.childElementCount > 2) { + if (listElement.childElementCount > 2 && !matchInput && inputElement.value.trim()) { listElement.firstElementChild.nextElementSibling.nextElementSibling.classList.add("b3-list-item--focus"); } else { listElement.firstElementChild.nextElementSibling.classList.add("b3-list-item--focus");