Skip to content

Commit

Permalink
Merge pull request #1424 from bcgov/bugfix/ALCS-1616
Browse files Browse the repository at this point in the history
Blur text field on selection 'waiting...'
  • Loading branch information
trslater authored Feb 14, 2024
2 parents f11a54c + 938103b commit 64067ec
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { DecisionModule } from './decision/decision.module';
import { DocumentUploadDialogComponent } from './documents/document-upload-dialog/document-upload-dialog.component';
import { DocumentsComponent } from './documents/documents.component';
import { InfoRequestsComponent } from './info-requests/info-requests.component';
import { InfoRequestDialogComponent } from './info-requests/info-rquest-dialog/info-request-dialog.component';
import { InfoRequestDialogComponent } from './info-requests/info-request-dialog/info-request-dialog.component';
import { IntakeComponent } from './intake/intake.component';
import { LfngInfoComponent } from './lfng-info/lfng-info.component';
import { ReturnApplicationDialogComponent } from './lfng-info/return-application-dialog/return-application-dialog.component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ApplicationInfoRequestForm {
public meetingType: ApplicationMeetingTypeDto,
public uuid: string | undefined = undefined,
public reason: string | undefined = undefined,
public reasonText: string | undefined = undefined
public reasonText: string | undefined = undefined,
) {}
}

Expand All @@ -35,7 +35,7 @@ export class InfoRequestDialogComponent {
constructor(
@Inject(MAT_DIALOG_DATA) public data: ApplicationInfoRequestForm,
private dialogRef: MatDialogRef<ApplicationMeetingDialogComponent>,
private meetingService: ApplicationMeetingService
private meetingService: ApplicationMeetingService,
) {
if (data.uuid) {
this.model = {
Expand All @@ -52,7 +52,7 @@ export class InfoRequestDialogComponent {
null,
data.meetingType,
undefined,
REASON_TYPE.DEFAULT
REASON_TYPE.DEFAULT,
);
}
}
Expand Down Expand Up @@ -94,6 +94,7 @@ export class InfoRequestDialogComponent {

if ($event.value === REASON_TYPE.DEFAULT) {
this.model.reasonText = '';
this.customReasonText.nativeElement.blur();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { ApplicationMeetingService } from '../../../services/application/application-meeting/application-meeting.service';
import { ToastService } from '../../../services/toast/toast.service';
import { ConfirmationDialogService } from '../../../shared/confirmation-dialog/confirmation-dialog.service';
import { InfoRequestDialogComponent, REASON_TYPE } from './info-rquest-dialog/info-request-dialog.component';
import { InfoRequestDialogComponent, REASON_TYPE } from './info-request-dialog/info-request-dialog.component';

@Component({
selector: 'app-app-info-requests',
Expand All @@ -27,7 +27,7 @@ export class InfoRequestsComponent implements OnInit, OnDestroy {
private meetingService: ApplicationMeetingService,
private confirmationDialogService: ConfirmationDialogService,
private toastService: ToastService,
private applicationDetailService: ApplicationDetailService
private applicationDetailService: ApplicationDetailService,
) {}

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class NoticeOfIntentInfoRequestForm {
public meetingType: NoticeOfIntentMeetingTypeDto,
public uuid: string | undefined = undefined,
public reason: string | undefined = undefined,
public reasonText: string | undefined = undefined
public reasonText: string | undefined = undefined,
) {}
}

Expand All @@ -35,7 +35,7 @@ export class InfoRequestDialogComponent {
constructor(
@Inject(MAT_DIALOG_DATA) public data: NoticeOfIntentInfoRequestForm,
private dialogRef: MatDialogRef<NoticeOfIntentMeetingDialogComponent>,
private meetingService: NoticeOfIntentMeetingService
private meetingService: NoticeOfIntentMeetingService,
) {
if (data.uuid) {
this.model = {
Expand All @@ -52,7 +52,7 @@ export class InfoRequestDialogComponent {
null,
data.meetingType,
undefined,
REASON_TYPE.DEFAULT
REASON_TYPE.DEFAULT,
);
}
}
Expand Down Expand Up @@ -94,6 +94,7 @@ export class InfoRequestDialogComponent {

if ($event.value === REASON_TYPE.DEFAULT) {
this.model.reasonText = '';
this.customReasonText.nativeElement.blur();
}
}

Expand Down

0 comments on commit 64067ec

Please sign in to comment.