Merge pull request #191 in TEA/mina-sidor-fa-web from bugfix/TV-753 to develop

Squashed commit of the following:

commit 30779fe3c1d6bbed16ea743b37f8ae6bf98113e9
Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se>
Date:   Wed Oct 13 08:30:17 2021 +0200

    TV-753 use digis change event attribute

commit 26c26d807f5ee213b1b86cf908c3eced9c899d60
Author: fueno <nicolas.fuentes-maturana@arbetsformedlingen.se>
Date:   Mon Oct 11 15:32:49 2021 +0200

    TV-753 reset other known reasons if reason changed
This commit is contained in:
Nicolas Fuentes Maturana
2021-10-13 08:33:08 +02:00
parent 483a688123
commit 5b1043f499
2 changed files with 5 additions and 0 deletions

View File

@@ -49,6 +49,7 @@
[afAnnounceIfOptional]="true"
[afDisableValidStyle]="true"
[afInvalid]="formControlIsInvalid(['reason'])"
(afOnChange)="reasonChanged()"
></digi-ng-form-select>
<div aria-atomic="true" role="alert">
<digi-ng-form-validation-message

View File

@@ -145,6 +145,10 @@ export class FranvaroReportFormComponent {
this.confirmDialogOpen$.next(false);
}
reasonChanged(): void {
this.otherKnownReasonFormControl.reset();
}
async submitAndCloseConfirmDialog(genomforandeReferens: number): Promise<void> {
this.submitLoading$.next(true);