mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 19:41:05 +08:00
This commit is contained in:
parent
d4b4be071c
commit
021e09e444
@ -1224,10 +1224,9 @@ export class Toolbar {
|
|||||||
if (inputElement.value.trim() && !matchInput) {
|
if (inputElement.value.trim() && !matchInput) {
|
||||||
html = `<div class="b3-list-item"><b>${inputElement.value.replace(/`| /g, "_")}</b></div>${html}`;
|
html = `<div class="b3-list-item"><b>${inputElement.value.replace(/`| /g, "_")}</b></div>${html}`;
|
||||||
}
|
}
|
||||||
|
html = `<div class="b3-list-item b3-list-item--focus">${window.siyuan.languages.clear}</div>` + html;
|
||||||
this.subElement.firstElementChild.lastElementChild.innerHTML = 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();
|
event.stopPropagation();
|
||||||
});
|
});
|
||||||
this.subElement.lastElementChild.lastElementChild.addEventListener("click", (event) => {
|
this.subElement.lastElementChild.lastElementChild.addEventListener("click", (event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user