mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
make sure autocomplete is closed when navigating to note
This commit is contained in:
@@ -405,7 +405,7 @@ tabRow.addListener('tabRemove', async ({ detail }) => {
|
||||
|
||||
if (tabContextToDelete) {
|
||||
// sometimes there are orphan autocompletes after closing the tab
|
||||
tabContextToDelete.$tabContent.find('.aa-input').autocomplete('close');
|
||||
tabContextToDelete.closeAutocomplete();
|
||||
|
||||
await tabContextToDelete.saveNoteIfChanged();
|
||||
tabContextToDelete.$tabContent.remove();
|
||||
|
||||
Reference in New Issue
Block a user