mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
use just note title in note autocomplete input field
This commit is contained in:
@@ -95,7 +95,12 @@ function initNoteAutocomplete($el, options) {
|
||||
}
|
||||
]);
|
||||
|
||||
$el.on('autocomplete:selected', (event, suggestion) => $el.setSelectedNotePath(suggestion.notePath));
|
||||
$el.on('autocomplete:selected', (event, suggestion) => {
|
||||
$el.setSelectedNotePath(suggestion.notePath);
|
||||
|
||||
$el.autocomplete("val", suggestion.noteTitle);
|
||||
});
|
||||
|
||||
$el.on('autocomplete:closed', () => {
|
||||
if (!$el.val().trim()) {
|
||||
clearText($el);
|
||||
|
||||
Reference in New Issue
Block a user