Skip to content

Build your personal knowledge base with Trilium Notes

fix triggering change event when item is chosen from autocomplete, fixes #1345

zadam25df1a054c40
diff --git a/src/public/app/widgets/promoted_attributes.js b/src/public/app/widgets/promoted_attributes.js
index e7c29090ef..e2a51771f4 100644
--- a/src/public/app/widgets/promoted_attributes.js
+++ b/src/public/app/widgets/promoted_attributes.js
@@ -154,7 +154,7 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
}
}]);
- $input.on('autocomplete:noteselected', e => this.promotedAttributeChanged(e))
+ $input.on('autocomplete:selected', e => this.promotedAttributeChanged(e))
});
}
else if (definition.labelType === 'number') {