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

This commit is contained in:
zadam 2021-12-20 22:10:21 +01:00
parent b8eeb0371c
commit 26602e8226

View File

@ -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');
}
}
}