Skip to content

Build your personal knowledge base with Trilium Notes

client: Fix default focus of "Include note" dialog (closes #365)

Elian Dorana18ac7c504ad
diff --git a/src/public/app/widgets/dialogs/include_note.js b/src/public/app/widgets/dialogs/include_note.js
index 64f07da669..6929126675 100644
--- a/src/public/app/widgets/dialogs/include_note.js
+++ b/src/public/app/widgets/dialogs/include_note.js
@@ -76,6 +76,10 @@ export default class IncludeNoteDialog extends BasicWidget {
this.textTypeWidget = textTypeWidget;
await this.refresh();
utils.openDialog(this.$widget);
+
+ this.$autoComplete
+ .trigger('focus')
+ .trigger('select'); // to be able to quickly remove entered text
}
async refresh(widget) {