mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
[ACA-3499] Cardview textitem update on change (#5882)
This commit is contained in:
parent
e293aa048e
commit
389a65860c
@ -14,8 +14,7 @@
|
|||||||
class="adf-property-value"
|
class="adf-property-value"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(blur)="update()"
|
(ngModelChange)="update()"
|
||||||
(keydown.enter)="update()"
|
|
||||||
[disabled]="!isEditable"
|
[disabled]="!isEditable"
|
||||||
(dblclick)="copyToClipboard(property.displayValue)"
|
(dblclick)="copyToClipboard(property.displayValue)"
|
||||||
matTooltipShowDelay="1000"
|
matTooltipShowDelay="1000"
|
||||||
@ -30,8 +29,7 @@
|
|||||||
class="adf-property-value"
|
class="adf-property-value"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(blur)="update()"
|
(ngModelChange)="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
|
||||||
@ -104,8 +102,7 @@
|
|||||||
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
|
||||||
[placeholder]="property.default"
|
[placeholder]="property.default"
|
||||||
[(ngModel)]="editedValue"
|
[(ngModel)]="editedValue"
|
||||||
(blur)="update()"
|
(ngModelChange)="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,7 +736,6 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user