From 513098aee7bba69dd5c26625f1f947192ce9595e Mon Sep 17 00:00:00 2001 From: Tomasz Gnyp <49343696+tomgny@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:39:49 +0100 Subject: [PATCH] AAE-19372 Fix clickable area on cardview textitem (#9361) * AAE-19372 Fix clickable area on cardview textitem * AAE-19372 update test description --- .../card-view-textitem.component.html | 4 +-- .../card-view-textitem.component.spec.ts | 25 +++++++++++++++++++ .../card-view-textitem.component.ts | 16 ++++++------ 3 files changed, 36 insertions(+), 9 deletions(-) diff --git a/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html b/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html index a3a07f8b74..83629f0820 100644 --- a/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html +++ b/lib/core/src/lib/card-view/components/card-view-textitem/card-view-textitem.component.html @@ -105,7 +105,7 @@ title="{{ property.label | translate }}" [ngClass]="{ 'adf-property-value-editable': editable, - 'adf-textitem-clickable-value': !isEditable, + 'adf-textitem-clickable-value': isClickable, 'adf-property-readonly-value': isReadonlyProperty, 'adf-property-value-has-error': isEditable && hasErrors }" @@ -114,7 +114,7 @@ [(ngModel)]="editedValue" (blur)="update()" (keydown.enter)="update()" - [disabled]="!isEditable" + [readonly]="!isEditable" [attr.data-automation-id]="'card-textitem-value-' + property.key">