Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Merge pull request #11709 from opf/bug/45032-custom-fields-editing-looks-like-its-possible-in-read-only-status

ulfertsff02da77cc34
diff --cc frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
index a1a29298151,72b9842db9e..8f985a77b85
--- a/frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
@@@ -192,9 -190,12 +190,13 @@@ export class EditableAttributeFieldComp
}
public handleUserActivate(evt:MouseEvent|KeyboardEvent|null):boolean {
+ if (!this.isEditable) {
+ return false;
+ }
+
let positionOffset = 0;
+ // This can be both a direct click as well as a "click" via keyboard, e.g. the <Enter> key.
if (evt?.type === 'click') {
// Get the position where the user clicked.
positionOffset = getPosition(evt);