Skip to content

Build your personal knowledge base with Trilium Notes

fix(promoted_attributes): "attribute is not owned" in auto-complete after switching notes

Elian Doran70a0b5c22f61
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx
index 56807bd145..42a4f4acea 100644
--- a/apps/client/src/widgets/PromotedAttributes.tsx
+++ b/apps/client/src/widgets/PromotedAttributes.tsx
@@ -415,6 +415,7 @@ function setupTextLabelAutocomplete(el: HTMLInputElement, valueAttr: Attribute,
]
);
+ $input.off("autocomplete:selected");
$input.on("autocomplete:selected", onChangeListener);
});
}