mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 15:25:51 +01:00
focus promoted/owned attributes input after activating the ribbon tab, closes #2606
This commit is contained in:
@@ -186,7 +186,9 @@ export default class RibbonContainer extends NoteContextAwareWidget {
|
||||
const activeChild = this.getActiveRibbonWidget();
|
||||
|
||||
if (activeChild && (refreshActiveTab || !wasAlreadyActive)) {
|
||||
activeChild.handleEvent('noteSwitched', {noteContext: this.noteContext, notePath: this.notePath});
|
||||
activeChild.handleEvent('noteSwitched', {noteContext: this.noteContext, notePath: this.notePath}).then(() => {
|
||||
activeChild.focus?.();
|
||||
});
|
||||
}
|
||||
} else {
|
||||
this.lastActiveComponentId = null;
|
||||
|
||||
Reference in New Issue
Block a user