[AAE-5872] - Viewer responds as we type in the form fields. Apply the… (#7298)

* [AAE-5872] - Viewer responds as we type in the form fields. Apply the fix on start process also

* Remove comments

Co-authored-by: Ardit Domi <arditdomi@apl-c02g64vpmd6t.home>
This commit is contained in:
arditdomi
2021-10-13 14:38:26 +01:00
committed by GitHub
parent dd351fb4d5
commit 3eb74384ae
6 changed files with 29 additions and 17 deletions

View File

@@ -17,7 +17,7 @@
import {
Component, EventEmitter, Input, OnChanges,
Output, SimpleChanges, OnDestroy
Output, SimpleChanges, OnDestroy, HostListener
} from '@angular/core';
import { Observable, of, forkJoin, Subject, Subscription } from 'rxjs';
import { switchMap, takeUntil, map } from 'rxjs/operators';
@@ -127,6 +127,11 @@ export class FormCloudComponent extends FormBaseComponent implements OnChanges,
});
}
@HostListener('keydown', ['$event'])
onKeyDown(event: KeyboardEvent) {
event.cancelBubble = true;
}
ngOnChanges(changes: SimpleChanges) {
const appName = changes['appName'];