expose note hoisting to frontend API, closes #663

This commit is contained in:
zadam
2019-10-21 21:22:53 +02:00
parent f0496cb42c
commit 132360b46b
6 changed files with 226 additions and 47 deletions

View File

@@ -411,11 +411,13 @@ class TabContext {
}
async remove() {
// sometimes there are orphan autocompletes after closing the tab
this.cleanup();
if (this.$tabContent) {
// sometimes there are orphan autocompletes after closing the tab
this.cleanup();
await this.saveNoteIfChanged();
this.$tabContent.remove();
await this.saveNoteIfChanged();
this.$tabContent.remove();
}
}
cleanup() {