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

This commit is contained in:
Elian Doran 2024-08-27 00:30:54 +03:00
parent 07bd3de4fb
commit a18ac7c504
No known key found for this signature in database

View File

@ -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) {