mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
fix(client): note autocomplete not working properly on enter (closes #1100)
This commit is contained in:
parent
cc74164b94
commit
eecbfd0206
@ -151,11 +151,11 @@ function initNoteAutocomplete($el: JQuery<HTMLElement>, options?: Options) {
|
|||||||
|
|
||||||
$el.addClass("note-autocomplete-input");
|
$el.addClass("note-autocomplete-input");
|
||||||
|
|
||||||
const $clearTextButton = $("<button>").addClass("input-group-text input-clearer-button bx bxs-tag-x").prop("title", t("note_autocomplete.clear-text-field"));
|
const $clearTextButton = $("<a>").addClass("input-group-text input-clearer-button bx bxs-tag-x").prop("title", t("note_autocomplete.clear-text-field"));
|
||||||
|
|
||||||
const $showRecentNotesButton = $("<button>").addClass("input-group-text show-recent-notes-button bx bx-time").prop("title", t("note_autocomplete.show-recent-notes"));
|
const $showRecentNotesButton = $("<a>").addClass("input-group-text show-recent-notes-button bx bx-time").prop("title", t("note_autocomplete.show-recent-notes"));
|
||||||
|
|
||||||
const $fullTextSearchButton = $("<button>")
|
const $fullTextSearchButton = $("<a>")
|
||||||
.addClass("input-group-text full-text-search-button bx bx-search")
|
.addClass("input-group-text full-text-search-button bx bx-search")
|
||||||
.prop("title", `${t("note_autocomplete.full-text-search")} (Shift+Enter)`);
|
.prop("title", `${t("note_autocomplete.full-text-search")} (Shift+Enter)`);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user