Skip to content

Build your personal knowledge base with Trilium Notes

fix(attributes): attributes context menu no longer triggering

Elian Doran27eed9b25ee0
diff --git a/apps/client/src/widgets/attribute_widgets/attribute_editor.ts b/apps/client/src/widgets/attribute_widgets/attribute_editor.ts
index 1f3da0096a..132632ceb0 100644
--- a/apps/client/src/widgets/attribute_widgets/attribute_editor.ts
+++ b/apps/client/src/widgets/attribute_widgets/attribute_editor.ts
@@ -198,6 +198,8 @@ export default class AttributeEditorWidget extends NoteContextAwareWidget implem
],
selectMenuItemHandler: ({ command }) => this.handleAddNewAttributeCommand(command)
});
+ // Prevent automatic hiding of the context menu due to the button being clicked.
+ e.stopPropagation();
}
// triggered from keyboard shortcut