mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
make sure autocomplete is closed when navigating to note
This commit is contained in:
@@ -109,6 +109,8 @@ class TabContext {
|
||||
|
||||
this.setTitleBar();
|
||||
|
||||
this.closeAutocomplete(); // esp. on windows autocomplete is not getting closed automatically
|
||||
|
||||
setTimeout(async () => {
|
||||
// we include the note into recent list only if the user stayed on the note at least 5 seconds
|
||||
if (notePath && notePath === this.notePath) {
|
||||
@@ -334,6 +336,10 @@ class TabContext {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
closeAutocomplete() {
|
||||
this.$tabContent.find('.aa-input').autocomplete('close');
|
||||
}
|
||||
}
|
||||
|
||||
export default TabContext;
|
||||
Reference in New Issue
Block a user