[ADF-5007] Comments - textarea Escape event cannot be canceled (#5266)

* use keydown event

* cancel event propagation

* update tests
This commit is contained in:
Cilibiu Bogdan
2019-12-03 16:11:22 +02:00
committed by Eugenio Romano
parent f2cbd0cd9a
commit 79eb9365c8
3 changed files with 5 additions and 4 deletions

View File

@@ -165,7 +165,8 @@ export class CommentsComponent implements OnChanges {
}
}
clear(): void {
clear(event: KeyboardEvent): void {
event.stopPropagation();
this.message = '';
}