Revert "[ACA-3499] Cardview textitem update on change (#5882)" (#5886)

This reverts commit 389a65860c.
This commit is contained in:
Eugenio Romano
2020-07-17 09:28:34 +01:00
committed by GitHub
parent 581a0ec7bf
commit 90820a08df
2 changed files with 7 additions and 3 deletions

View File

@@ -14,7 +14,8 @@
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(ngModelChange)="update()"
(blur)="update()"
(keydown.enter)="update()"
[disabled]="!isEditable"
(dblclick)="copyToClipboard(property.displayValue)"
matTooltipShowDelay="1000"
@@ -29,7 +30,8 @@
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(ngModelChange)="update()"
(blur)="update()"
(keydown.enter)="update()"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
<button mat-button
@@ -102,7 +104,8 @@
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(ngModelChange)="update()"
(blur)="update()"
(keydown.enter)="update()"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key">
<button mat-icon-button

View File

@@ -736,6 +736,7 @@ describe('CardViewTextItemComponent', () => {
const editInput = fixture.debugElement.query(By.css(`[data-automation-id="card-textitem-value-${key}"]`));
editInput.nativeElement.value = value;
editInput.nativeElement.dispatchEvent(new Event('input'));
editInput.nativeElement.dispatchEvent(new Event('blur'));
fixture.detectChanges();
}