Skip to content

Commit

Permalink
[ACA-3499] Cardview textitem update on change (#5882)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteMahe committed Jul 16, 2020
1 parent e293aa0 commit 389a658
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Expand Up @@ -14,8 +14,7 @@
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(blur)="update()"
(keydown.enter)="update()"
(ngModelChange)="update()"
[disabled]="!isEditable"
(dblclick)="copyToClipboard(property.displayValue)"
matTooltipShowDelay="1000"
Expand All @@ -30,8 +29,7 @@
class="adf-property-value"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(blur)="update()"
(keydown.enter)="update()"
(ngModelChange)="update()"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key"></textarea>
<button mat-button
Expand Down Expand Up @@ -104,8 +102,7 @@
[ngClass]="{ 'adf-textitem-clickable-value': !isEditable }"
[placeholder]="property.default"
[(ngModel)]="editedValue"
(blur)="update()"
(keydown.enter)="update()"
(ngModelChange)="update()"
[disabled]="!isEditable"
[attr.data-automation-id]="'card-textitem-value-' + property.key">
<button mat-icon-button
Expand Down
Expand Up @@ -736,7 +736,6 @@ 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();
}

Expand Down

0 comments on commit 389a658

Please sign in to comment.