mirror of
https://github.com/zadam/trilium.git
synced 2025-03-03 18:49:27 +08:00
fixed search
This commit is contained in:
parent
4459b22552
commit
ae5bba83b1
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ function resetSearch() {
|
|||
$("button#reset-search-button").click(resetSearch);
|
||||
|
||||
$("input[name=search]").keyup(e => {
|
||||
const searchString = $(this).val();
|
||||
const searchString = $("input[name=search]").val();
|
||||
|
||||
if (e && e.which === $.ui.keyCode.ESCAPE || $.trim(searchString) === "") {
|
||||
$("button#reset-search-button").click();
|
||||
|
|
Loading…
Reference in a new issue