fix focusing tree from note detail, closes #1897

This commit is contained in:
zadam 2021-04-27 23:05:28 +02:00
parent b1131844d6
commit f22c76d9fb

View file

@ -813,6 +813,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
const activeContext = appContext.tabManager.getActiveTabContext();
if (activeContext && activeContext.notePath) {
this.tree.$container.focus();
this.tree.setFocus(true);
const node = await this.expandToNote(activeContext.notePath);