Merge remote-tracking branch 'origin/stable'

This commit is contained in:
zadam
2020-05-27 00:09:40 +02:00
13 changed files with 138 additions and 107 deletions

View File

@@ -240,7 +240,7 @@ export default class TabManager extends Component {
}
this.tabsUpdate.scheduleUpdate();
this.setCurrentNotePathToHash();
}
@@ -251,6 +251,9 @@ export default class TabManager extends Component {
return;
}
// close dangling autocompletes after closing the tab
$(".aa-input").autocomplete("close");
await this.triggerEvent('beforeTabRemove', {tabId});
if (this.tabContexts.length <= 1) {
@@ -269,9 +272,6 @@ export default class TabManager extends Component {
this.children = this.children.filter(tc => tc.tabId !== tabId);
// remove dangling autocompletes after closing the tab
$(".algolia-autocomplete").remove();
this.triggerEvent('tabRemoved', {tabId});
this.tabsUpdate.scheduleUpdate();
@@ -348,4 +348,4 @@ export default class TabManager extends Component {
}
}
}
}
}