|
104 | 104 | </mat-form-field> |
105 | 105 | </div> |
106 | 106 |
|
107 | | - <div |
| 107 | + <button |
| 108 | + type="button" |
108 | 109 | *ngSwitchCase="'clickableTemplate'" |
109 | | - role="button" |
110 | 110 | class="adf-textitem-clickable" |
111 | 111 | [ngClass]="{ 'adf-property-read-only': !isEditable }" |
112 | 112 | [attr.data-automation-id]="'card-textitem-toggle-' + property.key" |
113 | | - tabindex="0" |
114 | | - (keyup.enter)="clicked()" |
115 | 113 | (click)="clicked()" |
116 | 114 | > |
117 | 115 | <mat-form-field class="adf-property-field adf-card-textitem-field" [floatLabel]="'always'"> |
118 | 116 | <mat-label |
119 | 117 | *ngIf="showProperty || isEditable" |
120 | 118 | [attr.data-automation-id]="'card-textitem-label-' + property.key" |
121 | 119 | class="adf-property-label" |
| 120 | + (click)="$event.stopPropagation()" |
122 | 121 | [ngClass]="{ 'adf-property-value-editable': editable }" |
123 | 122 | > |
124 | 123 | {{ property.label | translate }} |
|
127 | 126 | matInput |
128 | 127 | [type]="property.inputType" |
129 | 128 | class="adf-property-value" |
130 | | - title="{{ property.label | translate }}" |
131 | 129 | [ngClass]="{ |
132 | 130 | 'adf-property-value-editable': editable, |
133 | 131 | 'adf-textitem-clickable-value': isClickable, |
|
136 | 134 | 'adf-property-value-has-icon-suffix': showClickableIcon |
137 | 135 | }" |
138 | 136 | [placeholder]="property.default" |
139 | | - [attr.aria-label]="property.label | translate" |
140 | 137 | [(ngModel)]="editedValue" |
141 | 138 | (blur)="update()" |
142 | 139 | (keydown.enter)="update()" |
143 | 140 | [readonly]="!isEditable" |
| 141 | + tabindex="-1" |
144 | 142 | [attr.data-automation-id]="'card-textitem-value-' + property.key" |
145 | 143 | /> |
146 | 144 | <button |
|
154 | 152 | <mat-icon class="adf-textitem-icon">{{ property?.icon }}</mat-icon> |
155 | 153 | </button> |
156 | 154 | </mat-form-field> |
157 | | - </div> |
| 155 | + </button> |
158 | 156 |
|
159 | 157 | <div *ngSwitchCase="'emptyTemplate'"> |
160 | 158 | <span class="adf-textitem-default-value">{{ property.default | translate }}</span> |
|
0 commit comments