This commit is contained in:
Vanessa 2023-10-31 09:46:19 +08:00
parent 98692c85df
commit 22a4fd9285
9 changed files with 26 additions and 27 deletions

View file

@ -676,7 +676,7 @@ export const popSearch = (app: App, config = window.siyuan.storage[Constants.LOC
bindEvent(element) {
document.querySelector("#toolbarSearchNew").addEventListener("click", () => {
newFileByName(app, (document.querySelector("#toolbarSearch") as HTMLInputElement).value);
})
});
initSearchEvent(app, element.firstElementChild, config);
updateSearchResult(config, element);
}