focus "jump to note" in new tab when there are no workspaces, #2455

pull/255/head
zadam 2021-12-20 22:10:21 +07:00
parent b8eeb0371c
commit 26602e8226
1 changed files with 6 additions and 0 deletions

@ -84,5 +84,11 @@ export default class EmptyTypeWidget extends TypeWidget {
.on('click', () => this.triggerCommand('hoistNote', {noteId: workspaceNote.noteId}))
);
}
if (workspaceNotes.length === 0) {
this.$autoComplete
.trigger('focus')
.trigger('select');
}
}
}