This commit is contained in:
zadam
2020-01-18 18:01:16 +01:00
parent b25c1d6fa8
commit b00a9f4415
12 changed files with 91 additions and 102 deletions

View File

@@ -44,13 +44,9 @@ class TabContext extends Component {
this.tabRow.updateTab(this.$tab[0], {title: this.note.title});
if (!this.initialized) {
return;
}
this.setupClasses();
this.cleanup(); // esp. on windows autocomplete is not getting closed automatically
//this.cleanup(); // 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
@@ -64,11 +60,10 @@ class TabContext extends Component {
bundleService.executeRelationBundles(this.note, 'runOnNoteView', this);
appContext.trigger('activeNoteChanged');
this.trigger('tabNoteSwitched', {tabId: this.tabId});
}
async show() {
await this.setNote(this.notePath);
}
hide() {