Make note-detail-empty always display autocompletion.

This commit is contained in:
SiriusXT 2024-11-01 15:30:31 +08:00
parent dbca50d9b0
commit cdd5a17fce

View File

@ -67,6 +67,7 @@ export default class EmptyTypeWidget extends TypeWidget {
this.$workspaceNotes = this.$widget.find('.workspace-notes'); this.$workspaceNotes = this.$widget.find('.workspace-notes');
noteAutocompleteService.showRecentNotes(this.$autoComplete);
super.doRender(); super.doRender();
} }
@ -88,7 +89,5 @@ export default class EmptyTypeWidget extends TypeWidget {
this.$autoComplete this.$autoComplete
.trigger('focus') .trigger('focus')
.trigger('select'); .trigger('select');
noteAutocompleteService.showRecentNotes(this.$autoComplete);
} }
} }