mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix Jump To search input restoration
This commit is contained in:
parent
a15f8d7e11
commit
bf548f9d38
@ -30,6 +30,9 @@ export async function showDialog() {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$autoComplete
|
$autoComplete
|
||||||
|
// hack, the actual search value is stored in <pre> element next to the search input
|
||||||
|
// this is important because the search input value is replaced with the suggestion note's title
|
||||||
|
.autocomplete("val", $autoComplete.next().text())
|
||||||
.trigger('focus')
|
.trigger('focus')
|
||||||
.trigger('select');
|
.trigger('select');
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,14 @@ function init(callback) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function wrap(callback) {
|
function wrap(callback) {
|
||||||
return () => init(callback);
|
return () => {
|
||||||
|
try {
|
||||||
|
init(callback);
|
||||||
|
}
|
||||||
|
catch (e) {
|
||||||
|
console.log(`Error occurred: ${e.message}: ${e.stack}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get(key) {
|
function get(key) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user