fix broken autocomplete in attribute editor, closes #2295

This commit is contained in:
zadam
2021-10-30 15:22:20 +02:00
parent 4b1678c416
commit 126f41ae5e
2 changed files with 5 additions and 4 deletions

View File

@@ -193,7 +193,8 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget {
this.$editor.on('keydown', async e => {
if (e.which === 13) {
await this.save();
// allow autocomplete to fill the result textarea
setTimeout(() => this.save(), 100);
}
this.attributeDetailWidget.hide();