mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
ee957ff9e2
commit
83800a7ff1
1 changed files with 1 additions and 1 deletions
|
@ -1291,7 +1291,7 @@ export class Toolbar {
|
||||||
}
|
}
|
||||||
html = `<div class="b3-list-item">${window.siyuan.languages.clear}</div>` + html;
|
html = `<div class="b3-list-item">${window.siyuan.languages.clear}</div>` + html;
|
||||||
listElement.innerHTML = 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");
|
listElement.firstElementChild.nextElementSibling.nextElementSibling.classList.add("b3-list-item--focus");
|
||||||
} else {
|
} else {
|
||||||
listElement.firstElementChild.nextElementSibling.classList.add("b3-list-item--focus");
|
listElement.firstElementChild.nextElementSibling.classList.add("b3-list-item--focus");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue