mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
fix focusing tree from note detail, closes #1897
This commit is contained in:
parent
b1131844d6
commit
f22c76d9fb
1 changed files with 1 additions and 0 deletions
|
@ -813,6 +813,7 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||||
const activeContext = appContext.tabManager.getActiveTabContext();
|
const activeContext = appContext.tabManager.getActiveTabContext();
|
||||||
|
|
||||||
if (activeContext && activeContext.notePath) {
|
if (activeContext && activeContext.notePath) {
|
||||||
|
this.tree.$container.focus();
|
||||||
this.tree.setFocus(true);
|
this.tree.setFocus(true);
|
||||||
|
|
||||||
const node = await this.expandToNote(activeContext.notePath);
|
const node = await this.expandToNote(activeContext.notePath);
|
||||||
|
|
Loading…
Reference in a new issue