mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
jump to note list: Use a fixed container instead of dropdown
This commit is contained in:
@@ -137,8 +137,15 @@ function initNoteAutocomplete($el, options) {
|
||||
return false;
|
||||
});
|
||||
|
||||
let autocompleteOptions = {};
|
||||
if (options.container) {
|
||||
autocompleteOptions.dropdownMenuContainer = options.container;
|
||||
} else {
|
||||
autocompleteOptions.appendTo = document.querySelector('body');
|
||||
}
|
||||
|
||||
$el.autocomplete({
|
||||
appendTo: document.querySelector('body'),
|
||||
...autocompleteOptions,
|
||||
hint: false,
|
||||
autoselect: true,
|
||||
// openOnFocus has to be false, otherwise re-focus (after return from note type chooser dialog) forces
|
||||
|
Reference in New Issue
Block a user