mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
This reverts commit 389a65860c
.
This commit is contained in:
@@ -14,7 +14,8 @@
|
|||||||
class="adf-property-value"
|
class="adf-property-value"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(ngModelChange)="update()"
|
(blur)="update()"
|
||||||
|
(keydown.enter)="update()"
|
||||||
[disabled]="!isEditable"
|
[disabled]="!isEditable"
|
||||||
(dblclick)="copyToClipboard(property.displayValue)"
|
(dblclick)="copyToClipboard(property.displayValue)"
|
||||||
matTooltipShowDelay="1000"
|
matTooltipShowDelay="1000"
|
||||||
@@ -29,7 +30,8 @@
|
|||||||
class="adf-property-value"
|
class="adf-property-value"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(ngModelChange)="update()"
|
(blur)="update()"
|
||||||
|
(keydown.enter)="update()"
|
||||||
[disabled]="!isEditable"
|
[disabled]="!isEditable"
|
||||||
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
|
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
|
||||||
<button mat-button
|
<button mat-button
|
||||||
@@ -102,7 +104,8 @@
|
|||||||
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(ngModelChange)="update()"
|
(blur)="update()"
|
||||||
|
(keydown.enter)="update()"
|
||||||
[disabled]="!isEditable"
|
[disabled]="!isEditable"
|
||||||
[attr.data-automation-id]="'card-textitem-value-' + property.key">
|
[attr.data-automation-id]="'card-textitem-value-' + property.key">
|
||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
|
@@ -736,6 +736,7 @@ describe('CardViewTextItemComponent', () => {
|
|||||||
const editInput = fixture.debugElement.query(By.css(`[data-automation-id="card-textitem-value-${key}"]`));
|
const editInput = fixture.debugElement.query(By.css(`[data-automation-id="card-textitem-value-${key}"]`));
|
||||||
editInput.nativeElement.value = value;
|
editInput.nativeElement.value = value;
|
||||||
editInput.nativeElement.dispatchEvent(new Event('input'));
|
editInput.nativeElement.dispatchEvent(new Event('input'));
|
||||||
|
editInput.nativeElement.dispatchEvent(new Event('blur'));
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user